Skip to main content

Django package for backing up databases.

Project description

Django backups

A django backup package for backing up your databases.

Installation

Install through pip

pip install django-backups

In settings.py, add the following line:

BACKUP_DIR = BASE_DIR / "backups_folder"

This is where your saved backups will go locally.

Add backups to INSTALLED_APPS.

INSTALLED_APPS = [
    ...

    'backups',
]

Add those two lines in settings.py:

from dotenv import load_dotenv
load_dotenv()

Add the following lines to .env file:

DO_SPACE_ACCESS_KEY_ID='<key_id>'
DO_SPACE_SECRET_ACCESS_KEY='<secret_access_key>'
DO_SPACE_ENDPOINT_URL='<endpoint_url>'
DO_SPACE_BUCKET_NAME='<bucked_name>'
DO_SPACE_REGION='<s3_region>'

NOTE: Don't worry about DO_SPACE, it'll work with S3 in general.

Before running the server, make sure to do python manage.py migrate

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_backups-0.0.0a1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

django_backups-0.0.0a1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file django_backups-0.0.0a1.tar.gz.

File metadata

  • Download URL: django_backups-0.0.0a1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for django_backups-0.0.0a1.tar.gz
Algorithm Hash digest
SHA256 296f98b8a4c9719569eb2e68dff56c4498b0a6608165c44c9055042988b52ba6
MD5 2b8488eee60fb3c49e909d42d95b03d7
BLAKE2b-256 a9b95617158efb3f70b1e80b0be8b9534b74c8e700c7a4fef4e5f59525189bba

See more details on using hashes here.

File details

Details for the file django_backups-0.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_backups-0.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1655ae28f5264874856cac8a4c54d0125a6481927e1545f06f0c2452054fa1d
MD5 5a67e7fe4bf19d4d3e35e1ad72f17b80
BLAKE2b-256 01dbcf95f02b9f39867e971a36be326218d407c94b1dedf06eb82034d715ce1b

See more details on using hashes here.

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