Backup
Janitor
Some time ago, I developed a plugin called Janitor that allows Panel buttons to be configured. One of its features is a backup generation command.
However, if you use it from within the Panel, it is restricted to your server's maximum PHP script execution time (approximately 20-60 seconds), which might not be enough.
Therefore, I suggest creating a CRON job to generate the backup and another one to transfer that backup to another server like to AWS, GoogleDrive, Dropbox or others in Ploi.io.
cd /path/to/my/kirby/project/root && vendor/bin/kirby janitor:backupzip
Accounts folder
If you use the Janitor plugin command above, the account folder will be included in the backup. If you roll out your own solution just make sure you do not forget to include the .htpasswd
files of each user in your zip/rsync scripts.
Command
By default, the Klub plugin does not write to any data outside the accounts. It provides a klub:user-export
-command you can run with the official Kirby CLI to export all user data unencrypted and dump it as a JSON file like site/accounts/klub-users-{TIMESTAMP}.json
.
vendor/bin/kirby klub:user-export
vendor/bin/kirby klub:user-export --output ./members.json