I have seen several topics on the forum for prune -keep
options to mimic other backup systems (Crashplan, Duplicati) but I have not found one for Apple’s Time Machine. Specs detailed here:
… makes hourly backups for the past 24 hours, daily backups for the past month, and weekly backups for all previous months. The oldest backups are deleted when your backup disk is full.
Assuming Duplicacy is set to make hourly backups then the prune -keep
would be:
duplicacy prune -keep 7:30 -keep 1:1 -a
Keep a snapshot every
- 7 days for snapshots older than 30 days (weekly after one month)
- 1 day for snapshots older than 1 day (daily for up to one month)
Dry run to test:
Running prune command from /path/to/repository
Options: [-log prune -storage test -keep 7:30 -keep 1:1 -a -dry-run
2019-09-07 17:12:00.606 INFO STORAGE_SET Storage set to /path/to/storage
2019-09-07 17:12:02.253 INFO RETENTION_POLICY Keep 1 snapshot every 7 day(s) if older than 30 day(s)`
2019-09-07 17:12:02.253 INFO RETENTION_POLICY Keep 1 snapshot every 1 day(s) if older than 1 day(s)
Not clear to me how to implement the “oldest are deleted when your backup disk is full”.