backup tool with plugins
Project description
A small tool to run backups in different ways. Its pluggable.
Install
pip install dothebackup
Usage
Usage: dothebackup [OPTIONS] CONFIGFILE Commandline interface. Options: --test Only prints the created commands that would be used. --version Show the version and exit. --help Show this message and exit.
Config example
# destination where the logs will be log_dir: /var/log/DoTheBackup # define your backups here backup: my_documents: type: rsync # "month" means that it will save the backup in daily directories # for example: "/media/backup/documents/07" mode: month enabled: true source: /home/user/documents destination: /media/backup/documents # rsync --exclude patterns here exclude: - foo - bar # rsync --include patterns here include: - very_important_dir video: type: rsync # "once" backups straight in the destination directory # for example: "/media/backup/Videos" mode: once enabled: true source: /home/user/Media/Videos destination: /media/backup/Videos important_stuff: type: rsync mode: month enabled: true source: /home/user/very_important # this will use ssh to transfer the data over ssh destinaton: user@remote:/media/backup/important_stuff
Type plugins
rsync
It uses rsync to make backups. Be sure you have rsync installed.
Modes
once: Copies one to one.
week: Keeps one week. It stores the files in a numbered day directory and uses hardlinks to link to the files that are not changed from the day before.
month: Keeps one month. it stores the files for one month in a day numbered directory and works with hardlinks just like the week mode.
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
dothebackup-0.1.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file dothebackup-0.1.tar.gz
.
File metadata
- Download URL: dothebackup-0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4355be0cc26fba7f6c8e73e9dfa12853d6f70370f7ff6a4cf640af267550850 |
|
MD5 | 0221673cde00b4191ba9b2e9777ec1ee |
|
BLAKE2b-256 | 4afbf933ca39602f2f7fe64fb0ff5040484317c2f40b5b554589bf71200ad763 |
File details
Details for the file dothebackup-0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: dothebackup-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b6e83e8641287793d7a9a7b713671781028f4402fb3120ca346c856094ea351 |
|
MD5 | 85f4fdeb74d97c5636344006bc299e21 |
|
BLAKE2b-256 | ef8905cbaf22e69d8846de6d3f499a3fed13bf53c6927abf8f00401376ee2f11 |