Skip to main content

A simple Django app to backup your files and database to Yandex.Disk

Project description

YaBackup
========

YaBackup is a simple Django app to backup your files and database to Yandex.Disk

Requirements
------------

```
Python >= 3
Django >= 1.11
YaDiskClient >= 0.4.5
```

Older versions might work too

Install
-------

```
pip install django-yabackup
```
or
> [easy_install](https://pypi.python.org/pypi/setuptools) [YaBackup](https://pypi.python.org/pypi/YaBackup)


Quick start
-----------

1. Add "YaBackup" to your INSTALLED_APPS setting like this:
```
INSTALLED_APPS = [
...
'YaBackup',
]
```

2. Add YABACKUP_SETTINGS to your project settings:
```
YABACKUP_SETTINGS = {
'DATE_TIME_FORMAT': '%Y-%m-%d_%H-%M-%S', # Will be added to your backup file name
'YADISK_LOGIN': 'login', # Yandex.Disk login
'YADISK_PASSWORD': 'password', # Yandex.Disk password
'YADISK_BACKUP_ROOT': '/BACKUPS/', # path to your backups folder at Yandex.Disk MUST BE CREATED BEFORE RUNNING BACKUPS
}
```

3. Run `python manage.py migrate` to create the YaBackup models.


Usage
-----

You can create and run your backups from the admin backend. Also, you can run them with management command:
```
python manage.py YaBackup
```

Cron
----

> You can use [Chroniker](https://github.com/chrisspen/django-chroniker)
or other apps to schedule your backups by running management command.





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-yabackup-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_yabackup-0.1.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file django-yabackup-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-yabackup-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1619e2aa526cbe4eb67d6edf35431646407ad32debcef51acaa7a68ebd62635d
MD5 7d8bc521b74001f787d19eac2ed239cb
BLAKE2b-256 67288c0d71877e11905206df9b0582d173263dccec9c49982cd9d356130a7e83

See more details on using hashes here.

File details

Details for the file django_yabackup-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_yabackup-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b1b7e8345ab10988668edfb94ac2fbb84af74a4fbc735ffd05388e962ac0fe7
MD5 0759ce0048006c4324ab5aa48a44148b
BLAKE2b-256 6242421c73922c07ce625fb7c61183ea1eb7b5493c1deae88987f88e847c9a14

See more details on using hashes here.

Supported by

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