Very simple implementation of a configurable backup management (file-level).
It's very basic and supports folders with files and prefix only. I support some spots to place the configuration. You can install a fresh version via:
-
in script folder
cp rob.dist.yml rob.yml
-
in users home folder
cp rob.dist.yml ~/.rob.yml
You can config the following keys:
---
# rob.yml
Common:
- keep:
files: 10
path: /tmp/
file_prefix: db-backup
- keep:
files: 3
path: /tmp/
file_prefix: mega-backup
Notes:
- old
config.yml
files are deprecated but still loaded.
Supported commands are:
-h
for help-d
for active deletion mode (dry run is default)
There is a docker-compose.yml
for local testing.
pyyaml
(pyyaml)