I’ve been trying to figure out the difference between --keep and --keep-within. I have an external drive I make irregular backups to. I would like there to ALWAYS be:
Thanks. Are there any examples of --keep-within-* usage where it’s more preferable over just --keep? Why was this option added at all? I’d very much like if the manual had more examples regarding the difference between the two.
There is potentially massive difference between keeping last 30 daily snapshots vs keeping daily snapshots within the last month.
Imagine you run backup once per week. The first option will keep 30 snapshots spanning period of almost 3 years when the latter will keep only last 4.
But when you run backups daily results will be the same.
In your case --keep-monthly 12 vs --keep-within-monthly 1y as long as you always run backups on schedule will yield the same results. But if you skip some monthly backups results will differ.