resticprofile
resticprofile copied to clipboard
Retention flag after-backup not defaults to true
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
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 😉