It would be nice (although I guess it would be some work without direct support from borg) to have support for capping the number of backups by size.
I’ll explain myself better and provide an hypothetical algorithm.
The example config file on the borgmatic website has:
Which is lovely! Except for one thing: if I’ve got plenty of space I’d like to keep the highest possible number of monthly snapshots that fit.
So I’d love to say:
keep_monthly: up to 300GB, but at least 6 anyway
Now, the algorithm would be: when we go above quota we simply drop old versions until we either reach the required minimum or we get below quota again.
Due to deduplication we can’t know in advance how much to drop.
Imported from Taiga issue 24 (to do). Created on 2016-07-10T17:01:19+0000 by Leonardo Taglialegne.