back-up
Description
back-up is a utility for backing up directories (and their content).
I wrote it on impulse after discovering that my many hours' savegame files had been deleted for unknown reasons 😄
Features
- Can be called at fixed intervals but will not waste disk space if the latest backup is already up to date.
- Is really simple otherwise.
- Is configured with a YAML configuration file.
Installation
pip install back-up
Configuration
back-up reads the configuration from file ~/.config/back-up/back-up.yaml. That is where you should specify all the directories you want backed up. See sample back-up.yaml file for available options.
It is also possible, albeit usually impractical, to specify all the parameters on the command line.
Usage
usage: back-up [-h] [--backups-dir PATH] [--log-file PATH]
[--logging-level {CRITICAL,ERROR,WARNING,INFO,DEBUG}]
[--to-backup NAME=PATH [NAME=PATH ...]] [--config-file PATH]
[--archive-format FORMAT]
Utility for backing up directories.
optional arguments:
-h, --help show this help message and exit
--backups-dir PATH set the directory to dump the backups to; this is the
'general' backups directory, i.e. specific directories
that you back up will have their own subdirectories in
there
--log-file PATH set the file to dump logs to
--logging-level {CRITICAL,ERROR,WARNING,INFO,DEBUG}
set logging verbosity
--to-backup NAME=PATH [NAME=PATH ...]
set the directories to back up; PATH is the directory
to back up, NAME is an arbitrary identifier used to
organize the backup files in the backup directory, so
it's easier to find the thing you want to restore;
sample value: 'DOCUMENTS=~/Documents' (the tilde will
be expanded appropriately, backups will be dumped
under '<backups_dir>/DOCUMENTS/...')
--config-file PATH where to take config from; command line arguments have
priority though; default: '~/.config/back-up/back-
up.yaml'
--archive-format FORMAT
what format to store the backups in; default: 'zip'
TODO
- Add some sort of cleanup capability for really old backups.
Metadata
Release files for back-up 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| back-up-1.0.0.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| back_up-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / back-up-1.0.0.tar.gz
| Download URL | back-up-1.0.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfa7a0d5630cd53072a0381504049b91d70c06a4bbf8c8043535a5182d0ac0b8
|
|
BLAKE2b-256 checksum How to use checksums |
3cacd7a01af62f66a544f23688b025de32d0bb2f879bbb1c65afc0edaf6352e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / back_up-1.0.0-py3-none-any.whl
| Download URL | back_up-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d3f4a36960097ce3941d04ad140c99e6e6f093afa35569a8a68924922f2070e
|
|
BLAKE2b-256 checksum How to use checksums |
f21d9b88c37a9238824f33c807ce6b9801efba8c8716ff8714961dace8ba9b54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|