-
-
Notifications
You must be signed in to change notification settings - Fork 836
Description
Have you checked borgbackup docs, FAQ, and open Github issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
Question / Enhancement
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
1.1.9
Operating system (distribution) and version.
Debian stretch
Describe the problem you're observing.
When using prune command, I think would be useful a retention option (--keep-x) between monthly and yearly, so I tought to something like --keep-quarterly.
Furthermore I would suggest, if it's not too complicated, a way that could make the retention policy even more customizable: use a flexible syntax like --keep-n# number where n is a number and # is a character in the current set (h,d,m,y). I'll make a few examples that are worth 10 explanations.
--keep-1w is the same as --keep-weekly.
--keep-2w 3 means keep one backup every 14 days (two weeks) for a max of 3
--keep-4m would mean --keep-quarterly
--keep-2d 5 means keep one backup every two days for a maximum of 5.
Basically the syntax is the same of the argument --keep-within.
Here is a simple use case. Let's say I want to backup my music folder monthly, but I don't need all the monthly backups, for example because I want to save only the big changes in my musical attitudes (switching from blues to rap let's say), then I would use --keep-quarterly.
Probably I wrote too much. The point is that if we use the same simple syntax used in --keep-within command, we could achieve a great flexibility in the retention policy.