Skip to main content

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

  1. Install with pip:
pip install django-database-backup-to-git
  1. Set up a Git repository outside of your application's main Git repository.
  2. Add dbbackup_git to your INSTALLED_APPS.
  3. 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`
  1. Run manage.py help, check that dbbackup_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

django-database-backup-to-git-1.3.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django-database-backup-to-git-1.3.0.tar.gz.

File metadata

  • Download URL: django-database-backup-to-git-1.3.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

Hashes for django-database-backup-to-git-1.3.0.tar.gz
Algorithm Hash digest
SHA256 b250ed735c17ba96c2c9a835f0c7802b31a98255438d2e33472d84c4cfa00fc6
MD5 87ad304a4c0681df5fc00d04398d503b
BLAKE2b-256 53ced9bd831dab8a7483afe150d8768ea7eead7634a036e1895f2487fb5d3a28

See more details on using hashes here.

Provenance

File details

Details for the file django_database_backup_to_git-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: django_database_backup_to_git-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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

Hashes for django_database_backup_to_git-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 076ef56731ec4ea4c0b30a450bad3420f95f8bd23565684074b2f984f7a324ca
MD5 c52e04d3cb945b2db6d80c65357869c7
BLAKE2b-256 2035f6289e587ea1a259db4c3c7ce225bc5c4df436999e8b1e6e08eda38356e2

See more details on using hashes here.

Provenance

Supported by

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