Installing on your system

Getting the latest stable release

pip install django-dbbackup

Getting the latest release from trunk

In general, you should not be downloading and installing stuff directly off repositories – especially not if you are backing up sensitive data.

Security is important, bypassing PyPi repositories is a bad habbit, because it will bypass the fragile key signatures authentication that are at least present when using PyPi repositories.

pip install -e git+

Add it in your project

In your, make sure you have the following things:

    'dbbackup',  # django-dbbackup

DBBACKUP_STORAGE_OPTIONS = {'location': '/var/backups'}

Create the backup directory:

mkdir /var/backups


This configuration uses filesystem storage, but you can use any storage supported by Django API. See storage for more information about it.

Testing that everything worked

Now, you should be able to create your first backup by running:

$ python dbbackup

If your database was called default which is the normal Django behaviour of a single-database project, you should now see a new file in your backup directory.