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`
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.
========
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`
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
Release history Release notifications | RSS feed
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.2.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for django_yabackup-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e17d358f4dde7221de14ce5498fb5c6803bad413c6a546578f8cafe6833b288b |
|
MD5 | e744bdb7294698660f40d8e94c991d80 |
|
BLAKE2b-256 | b2f03ce299b867aa3024179736a039cc9ea198c04435ade1b613db0b1fba790b |