LogoLogo
  • Hatchbox Classic Support
  • Clusters
  • Providers
  • Servers
  • Apps
    • ActionCable
    • Background Workers
    • Backups
    • BitBucket
    • Cron Jobs
    • Deploy Scripts
    • Domains & DNS
    • ElasticSearch
    • File Uploads
    • Image Processing
    • Jekyll
    • Passenger
    • Postgres
    • Puma
    • Rails
    • Rake
    • React On Rails
    • Ruby Versions
    • Sitemaps
    • Sphinx
    • SSL
    • Webhooks & Auto-Deploy
    • Webpacker
  • Security
  • Support
  • Databases
    • Backup & Restore
Powered by GitBook
On this page
  • How do I enable backups in Hatchbox?
  • Can I change how often backups run?
  • How do I change what gets backed up and where?
  • How do I test my backups?
  1. Apps

Backups

PreviousBackground WorkersNextBitBucket

Last updated 6 years ago

How do I enable backups in Hatchbox?

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.

Can I change how often backups run?

Yep. To change how often your backups run, edit /etc/cron.d/APPNAME-backup and adjust the cron schedule.

How do I change what gets backed up and where?

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

How do I test my backups?

To test your backups, simply run: backup perform -t appname_underscored

Backup gem