Skip to main content

Get Backup From Database Through Admin Panel

Project description

django-dbbackup-admin

get backup from database through admin panel

This is a simple and useful method to get backup from database through admin panel

1. install package

pip install django-dbbackup-admin

2. add this packages in INSTALLED_APPS :

INSTALLED_APPS = [
    # ...
    'dbbackup',
    'solo',
    'dbbackup_admin'
    # ...
]

3.read documents of django-dbbackup library from this link :

https://django-dbbackup.readthedocs.io/en/master/

4. set your desired config like this:

DBBACKUP_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'

DBBACKUP_STORAGE_OPTIONS = {
    'access_key': config("S3_ACCESS_KEY"),
    'secret_key':config("S3_SECRET_KEY"),
    'bucket_name': config("S3_BUCKET_NAME"),
    'default_acl': config("S3_DEFAULT_ACL"),
    'location':config("S3_BACKUP_FOLDER_NAME")
}

Note: If you use s3 storage you should install boto3 package.

5. create and migrate migrations in BASE_DIR:

python manage.py migrate dbbackup_admin

when you pass this missions toy will see this in your admin panel: Panel

when you click on save button backup will be saved on your desired bucket or directory.

Thanks for attention

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-dbbackup-admin-1.4.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

django_dbbackup_admin-1.4.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file django-dbbackup-admin-1.4.0.tar.gz.

File metadata

  • Download URL: django-dbbackup-admin-1.4.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for django-dbbackup-admin-1.4.0.tar.gz
Algorithm Hash digest
SHA256 a64c4cb4163edc7c810cd1deb3c789a4bee235d5c40a0cdef1e7778430a82392
MD5 027e29aac2dc93a86773b4b8b27319ba
BLAKE2b-256 9c18b81af831c569bed602a3d4398d3ce8a750e2b4a1e0abe8f6de02eaa717e9

See more details on using hashes here.

File details

Details for the file django_dbbackup_admin-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_dbbackup_admin-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0806bf023a5b4999eca4aad0660937053a4e7eef90d12c4ea8b1f98ed4082712
MD5 4f6db9ef0d22ed8c0fe9449d087d3a2e
BLAKE2b-256 7fa3ba87d365f9ec07e9bd75261c79df23057edd63f42e2f04a9b75dc40ab351

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