myvoice-nigeria / myvoice

MyVoice Nigeria
https://myvoicenigeria.com
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

automated database backups #210

Open tobiasmcnulty opened 10 years ago

tobiasmcnulty commented 10 years ago

The database should be backed up on a regular basis (e.g., every few hours) to Amazon S3 or some other type of persistent storage. We've used this before with good success (scheduled via Celery, backed up to S3):

https://bitbucket.org/mjs7231/django-dbbackup

As a temporary measure, you can create a manual backup of the database by running a command like this:

fab download_prod_db:myvoice-backup-`date "+%Y-%m-%d_%H:%M:%S"`.sql