DBBackup to Local Disk¶
To store your database backups on the local filesystem, simply setup the required settings below. Storing backups to local disk may also be useful for Dropbox if you already have the offical Dropbox client installed on your system.
Setup Your Django Project¶
- Install django-dbbackup application:
>> cd django-dbbackup >> python setup.py install
- Add 'dbbackup' to INSTALLED_APPS in your settings.py file.
- Include the required settings below.
DBBACKUP_STORAGE = 'dbbackup.storage.filesystem_storage' DBBACKUP_FILESYSTEM_DIRECTORY = '<local_directory_path>'
- Now you're ready to use the backup management commands.
Available Settings¶
DBBACKUP_FILESYSTEM_DIRECTORY (required)
The directory on your local system
you wish to save your backups.
About This Project
Django-DBBackup is a project created by me (Michael Shepanski), a web developer located in Boston, MA. I developed this project out of a need to backup this personal site database to an offsite location. Feel free to manipulate, improve upon, and use however you'd like.
Licensed via Creative Commons Attribution.
More Documentation
- Introduction & Management Commands
- Setup Backups to Amazon S3
- Setup Backups to Dropbox
- Setup Backups to Local Disk
- Customize Backup Commands
Database Compatability
My testing resulted the following. If you find different, please let me know and I will adjust.
- SQLite 3.x
- MySQL 5.x
- PostgreSQL 9.x
Support & Contact
- Fork me from the Bitbucket repository.
- Join discussions in the Google Group.
- Report issues and bugs here.
- Follow @PKKid on Twitter for release updates and news.