Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retention policy per year #597

Open
Massimo-B opened this issue Aug 12, 2024 · 0 comments
Open

Retention policy per year #597

Massimo-B opened this issue Aug 12, 2024 · 0 comments

Comments

@Massimo-B
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant