Skip to main content

Database backup management command.

Project description

This tiny Django application provides a “dbdump” management command that wraps mysqldump or pg_dump and allows you to create SQL dumps of your configured databases.

To use, add ‘dbdump’ to your INSTALLED_APPS.


  • $ dbdump
  • $ dbdump –db-name=mydb –debug –compress=gzip

You can dump only table schema without data or exclude tables completely using DB_DUMP_EMPTY_TABLES and DB_DUMP_EXCLUDED_TABLES settings inside your settings.DATABASES definition. For example:

    'default': {
        'ENGINE': 'mysql',
        'DB_DUMP_EMPTY_TABLES': ['table1', 'table2'],

will not include contents of table1 and table2 in your output.

See for more information.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-dbdump, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-dbdump-1.1.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page