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.

Usage:

  • $ manage.py dbdump

  • $ manage.py 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:

DATABASES = {
    'default': {
        'ENGINE': 'mysql',
        ...
        'DB_DUMP_EMPTY_TABLES': ['table1', 'table2'],
    }
}

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

See http://github.com/vitaliyf/django-dbdump 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.

Source Distribution

django-dbdump-0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file django-dbdump-0.1.tar.gz.

File metadata

  • Download URL: django-dbdump-0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-dbdump-0.1.tar.gz
Algorithm Hash digest
SHA256 2e8accaf254b155f11024a37127e3826c7d6e638038892387d05434922684838
MD5 0da7cbb1bc4deef381707adfaa5820d4
BLAKE2b-256 9e0c711bb2cdc85b0d88014c3ab12f98430b1dc7a4a3cc6a292a3b69b35c23f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page