resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

Retention flag after-backup not defaults to true

Open treac1e opened this issue 1 year ago • 1 comments

In the reference for Section profile.retention for the flag after-backup it reads:

Apply retention after the backup command succeeded. Defaults to true if any “keep-*” flag is set and “before-backup” is unset

But this is not working. I had to explicitly set after-backup = true

  [default.retention]
    after-backup = true
    keep-daily = 30
    prune = true

Withou setting after-backup = true the retention profile was not executed. So the flag after-backup not defaults to true.

I don't know if this is a mistake in the reference or it is a bug in the code. Maybe someone could check the issue.

Thank you! Bruno

treac1e avatar Jan 26 '24 10:01 treac1e

Sorry for the late reply...

I double checked, and actually it is working, but for configuration format v2 only. We haven't introduced it in configuration v1 as it is a potentially breaking change.

Thanks for pointing it out though, I'll update the documentation 😉

creativeprojects avatar Feb 06 '24 19:02 creativeprojects