7bd4927b3c0cfe5d0fef24f7f8aa76cb06240850
simple-backup
This creates a backup on the local filesystem, but does not persist it anywhere else. Right now the best solution i have to to manually upload this to proton drive.
configure
Can add new backups to this by adding another conf file. See configs directory for examples.
Each config file should include:
outputDir: Where to store the backupinputs: List of directories/files to back upignorePatterns: List of patterns to excludearchiveType: Either "tar" (default) or "zip" (faster, lower compression)
running
Can run with ./backup.py, or create a cron job. Current crontab entry is (every sat at 0105):
sudo crontab -e
5 1 * * 6 /home/craig/services/simple-backup/backup.py >> /var/log/simple-backup.log 2>&1
exlude patterns
Uses simple "filter" in "path", so no globbing/regexing.
For directories, having a trailing slash means it includes the dir but none of its contents.
Description
Languages
Python
86.8%
Shell
13.2%