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_git.apps.DbbackupGitConfig
to yourINSTALLED_APPS
. - In you settings file, specify the
DBBACKUP_GIT
setting
DBBACKUP_GIT = {
'DATABASE_BACKUP_FILENAME': os.path.join(BASE_DIR, '..', '..', 'myapp-db-backup', 'db.json'),
'PUSH': True # Determines whether the created backup is pushed to a remote repository, defaults to `True`
- Run
manage.py help
, check thatdbbackup_git
is listed as available command.
Usage
Typing manage.py dbbackup_git
will also display output. When running it from cron, use manage.py dbbackup_git --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
File details
Details for the file django-database-backup-to-git-1.2.0.tar.gz
.
File metadata
- Download URL: django-database-backup-to-git-1.2.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a84905609caf0aebe062e151077be0a51c3d624a058c35592dda05fe725b31a |
|
MD5 | a413e8c10b6af29b6547c59295f8ab59 |
|
BLAKE2b-256 | 0f3a5235d30300b8afc9c8ee62c0bc1faab510a23a32054d103947f74d1bd837 |
Provenance
File details
Details for the file django_database_backup_to_git-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: django_database_backup_to_git-1.2.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 569c1e57ebef4b36aa6b7fa27bd8dbab3d3b466b9344569375bc9f4977dc850b |
|
MD5 | b2ae06cab8b2e5aa0c2b6f624387c545 |
|
BLAKE2b-256 | a3f24ec7daeff1d7293a14b4efee53eb6ed268cec7575854e480730d9b8a8c1e |