Django specific database backup system
Project description
Django Database Backup to Git
A Django app, which makes a database backup in JSON format, commits and pushes it to a dedicated Git repository. Intended to be run in deployment scripts and as a scheduled task.
Installation and Setup
- Install with pip:
pip install django-database-backup-to-git
- Set up a Git repository outside of your application's main Git repository.
- Add
dbbackup
to yourINSTALLED_APPS
. - In you settings file, specify the
DATABASE_BACKUP_FILENAME
setting. (Recommendably relative toBASE_DIR
.) - Run
manage.py help
, check thatdbbackup
is listed as available command.
Usage
Typing manage.py dbbackup
will also display output. When running it from cron, use manage.py dbbackup --silent
.
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
Built Distribution
Close
Hashes for django-database-backup-to-git-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc459c6df974bd714840837940b63620f95a80dc28912f95eab0472c671478e8 |
|
MD5 | 72a3bad7a0fb3a1f8c2089922c5fc48a |
|
BLAKE2b-256 | 9c2054ae8ef20176113f33f98eff2ea138f58a0c1c7bc93ad79fcb5b423e6f35 |
Close
Hashes for django_database_backup_to_git-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1462ba9b0156aa8c7b9eb32d9e0a052d0368348ab05a7e6c34a3f730cef749a |
|
MD5 | d81e56696aa0e8212c448afbaddf54c6 |
|
BLAKE2b-256 | 7b7acbb4d6610a3e52c79f622043f92913442ce85ad47a45c36dfceb2eb94700 |