This is a fairly simple wrapper around cshatag and rsync.
My usecase is that I have a mounted drive which I would like to backup to another mounted drive. I might use the backup-helper like so:
backup-helper /mnt/source /mnt/backup
This will:
- Check both folders contain a
.backup-helper-check
file (smoke test to ensure that both drives are both mounted) - Check that both folders allow for writing and reading
- Run
cshatag
on both drives (in parallel) to check for bitrot - Run
rsync
to sync the contents of/mnt/source
to/mnt/backup
(but not the other way around)
The program will stop if any step above fails. In all cases, the program will send an email report, as configured in config.json
(see config.json.example
)