# 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](https://github.com/HosseinSayyedMousavi/django-dbbackup-admin/assets/104124540/fca21688-e377-45f4-846d-7b2adede191b)
when you click on save button backup will be saved on your desired bucket or directory.
Thanks for attention
Raw data
{
"_id": null,
"home_page": "https://github.com/HosseinSayyedMousavi",
"name": "django-dbbackup-admin",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "django, database, media, backup, amazon, s3, dropbox",
"author": "Hossein Sayyedmousavi",
"author_email": "Hossein.Sayyedmousavi@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/99/03/31545ca0edf354a11470bcd094f873961df1d31ea4a1f59612e712cde8e3/django-dbbackup-admin-1.5.0.tar.gz",
"platform": null,
"description": "# django-dbbackup-admin\nget backup from database through admin panel\n\nThis is a simple and useful method to get backup from database through admin panel\n\n### 1. install package\n pip install django-dbbackup-admin\n\n### 2. add this packages in INSTALLED_APPS :\n```\nINSTALLED_APPS = [\n # ...\n 'dbbackup',\n 'solo',\n 'dbbackup_admin'\n # ...\n]\n```\n### 3.read documents of django-dbbackup library from this link :\n https://django-dbbackup.readthedocs.io/en/master/\n\n### 4. set your desired config like this:\n```\nDBBACKUP_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'\n\nDBBACKUP_STORAGE_OPTIONS = {\n 'access_key': config(\"S3_ACCESS_KEY\"),\n 'secret_key':config(\"S3_SECRET_KEY\"),\n 'bucket_name': config(\"S3_BUCKET_NAME\"),\n 'default_acl': config(\"S3_DEFAULT_ACL\"),\n 'location':config(\"S3_BACKUP_FOLDER_NAME\")\n}\n```\nNote: If you use s3 storage you should install boto3 package.\n\n### 5. create and migrate migrations in BASE_DIR: \n python manage.py migrate dbbackup_admin\n\nwhen you pass this missions toy will see this in your admin panel:\n![Panel](https://github.com/HosseinSayyedMousavi/django-dbbackup-admin/assets/104124540/fca21688-e377-45f4-846d-7b2adede191b)\n\n\nwhen you click on save button backup will be saved on your desired bucket or directory.\n\nThanks for attention\n",
"bugtrack_url": null,
"license": null,
"summary": "Get Backup From Database Through Admin Panel",
"version": "1.5.0",
"project_urls": {
"Homepage": "https://github.com/HosseinSayyedMousavi"
},
"split_keywords": [
"django",
" database",
" media",
" backup",
" amazon",
" s3",
" dropbox"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bb9ab256c29e78095ad2bf47c08f85ca589241f5897e072b1765dd6f35d5e042",
"md5": "e3248ef8490fc3e92d45b384d1310dea",
"sha256": "1375eb5c3a71bd60b34d8f3565fcd3383525d43bf72f7196e8b46847d5f31004"
},
"downloads": -1,
"filename": "django_dbbackup_admin-1.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e3248ef8490fc3e92d45b384d1310dea",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5517,
"upload_time": "2024-04-02T08:15:03",
"upload_time_iso_8601": "2024-04-02T08:15:03.473150Z",
"url": "https://files.pythonhosted.org/packages/bb/9a/b256c29e78095ad2bf47c08f85ca589241f5897e072b1765dd6f35d5e042/django_dbbackup_admin-1.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "990331545ca0edf354a11470bcd094f873961df1d31ea4a1f59612e712cde8e3",
"md5": "ae5f230f68b03fb240856b8da25cf5f7",
"sha256": "99d5a8281f06abbff2594698f7540cd4b190fd295337c6a558a36a54e16a8935"
},
"downloads": -1,
"filename": "django-dbbackup-admin-1.5.0.tar.gz",
"has_sig": false,
"md5_digest": "ae5f230f68b03fb240856b8da25cf5f7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4519,
"upload_time": "2024-04-02T08:15:07",
"upload_time_iso_8601": "2024-04-02T08:15:07.995881Z",
"url": "https://files.pythonhosted.org/packages/99/03/31545ca0edf354a11470bcd094f873961df1d31ea4a1f59612e712cde8e3/django-dbbackup-admin-1.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-02 08:15:07",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "django-dbbackup-admin"
}