Summary
I am backing up to a local store and using the copy command to send the snapshots offsite as described in Backup to multiple storages. However, this approach sends more snapshots offsite than needed. Suggest adding an -include
parameter to the copy command.
Background
Previously, I used to use two backups, one local and one offsite. The local backup created snapshots hourly and is primarily to help with the occasional “oops” by a user. The offsite backup created snapshots daily for disaster recovery. This dual-backup approach provided sufficient risk mitigation and disaster recovery for my needs. Switching to the backup-copy approach increased bandwidth utilization and storage costs without corresponding benefit because all the hourly snapshots are sent offsite.
Suggestion Details
I suggest adding something similar to the prune command’s -keep
parameter to the copy command. However, instead of determining which snapshots to prune, it will determine which snapshots to include. For example, to include only 1 snapshot per day, -include 1,0
would copy just 1 snapshot per day.
The effect achieved will be the state described in bullet 4 in Backup to multiple storages under “Pruning” without the manual effort or creation of a (possibly buggy) bespoke script.
Thanks,
Scott Ainsworth