Backups
Last updated
Last updated
We use the with a nightly cron job to backup your app's data.
You can turn on backups by visiting the Backups tab and enabling it. By default, we'll backup your database to local disk.
Yep. To change how often your backups run, edit /etc/cron.d/APPNAME-backup
and adjust the cron schedule.
You can customize your back to do other things like upload to S3 or DigitalOcean Spaces, post notification on completion or failure in Slack or by email, and also backup files if you're doing local file uploads.
Each of these features can be found on the Backup gem's website linked above. Your backup config will have some examples of these options commented out that you can easily enable.
To edit your backup config, you can edit /home/deploy/Backup/models/app_name_underscored
To test your backups, simply run: backup perform -t appname_underscored