Contact Us
- Post a Question (public)
- Submit a Ticket (private)
- IRC-freenode: #pagodabox
- @pagodasupport
Does pagoda offer of backup services?
Should we setup our own backups methods for mysql / writable dirs?
Currently there’s not an option to set up automated backups via the admin panel, but it’s on the roadmap. So in the mean time it is strongly recommended that you set up your own backup methods.
It could be done via a cron job & environment variables with a command something like this:
mysqldump h $DB1_HOST —port $DB1_PORT $DB1_NAME -u $DB1_USER -p$DB1_PASS > writable_backup_dir/bk_`date +\%Y\%m-\%d`.sql
You’d need to create the “writable_backup_dir” for the above command to work. Here’s more info on cron jobs http://help.pagodabox.com/customer/portal/articles/333772-linux-php-cron-job.
Or you could also have your application handle it with a background worker http://help.pagodabox.com/customer/portal/articles/430779-background-workers.