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 backup
  • inputs: List of directories/files to back up
  • ignorePatterns: List of patterns to exclude
  • archiveType: 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
No description provided
Readme 47 KiB
Languages
Python 86.8%
Shell 13.2%