Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

vitaliyf/django-dbdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-dbdump

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.

About

Django management command to run mysqldump or pg_dump

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages