Metadata-Version: 2.1
Name: django-backups
Version: 0.0.0a1
Summary: Django package for backing up databases.
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django
Requires-Dist: boto3
Requires-Dist: celery
Requires-Dist: psycopg2
Requires-Dist: python-dotenv
Requires-Dist: amqp
Requires-Dist: asgiref
Requires-Dist: billiard
Requires-Dist: botocore
Requires-Dist: click
Requires-Dist: click-didyoumean
Requires-Dist: click-plugins
Requires-Dist: click-repl
Requires-Dist: jmespath
Requires-Dist: kombu
Requires-Dist: prompt_toolkit
Requires-Dist: python-dateutil
Requires-Dist: s3transfer
Requires-Dist: six
Requires-Dist: sqlparse
Requires-Dist: tzdata
Requires-Dist: urllib3
Requires-Dist: vine
Requires-Dist: wcwidth

# Django backups

A django backup package for backing up your databases.

## Installation

Install through pip

```bash
pip install django-backups
```

In settings.py, add the following line:

```python
BACKUP_DIR = BASE_DIR / "backups_folder"
```

This is where your saved backups will go locally.

Add `backups` to INSTALLED_APPS.

```bash
INSTALLED_APPS = [
    ...

    'backups',
]
```

Add those two lines in settings.py:

```python
from dotenv import load_dotenv
load_dotenv()
```

Add the following lines to `.env` file:
```ini
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`
