btrbk icon indicating copy to clipboard operation
btrbk copied to clipboard

Retention policy per year

Open Massimo-B opened this issue 1 year ago • 0 comments

Hi, as far as I understand section RETENTION POLICY from man btrbk.conf, it is currently not possible to define a count per year or per any other period.

For instance, I currently have: target_preserve 30d 24w 12m 8y That means 30 days, 24 weeks, 12 months and 8 years are kept. So after 12 months, only 1 snapshot per year is kept. That means I can't define that after 12 months I like to keep 2 snapshots per year.

A proposal how to define such a policy: Additionaly to the current keywords [<hourly>h] [<daily>d] [<weekly>w] [<monthly>m] [<yearly>y] add the new keywords [<perhour>ph] [<perday>pd] [<perweek>pw] [<permonth>pm] [<peryear>py]

For my case the new policy would be: target_preserve 30d 24w 12m 8y 2py

Please comment and rate this idea...

Massimo-B avatar Aug 12 '24 06:08 Massimo-B