Skip to content
Snippets Groups Projects
Commit f5c1283d authored by Radoslav Bodó's avatar Radoslav Bodó
Browse files

rwm: add warning if keep-within is not used in retention

parent 56b70279
No related branches found
No related tags found
No related merge requests found
Pipeline #7683 passed
......@@ -450,6 +450,12 @@ class RWM:
"""runs forget prune"""
logger.info("_restic_forget_prune")
if "keep-within" not in self.config.retention:
# if not keep-within, operational backups (eg. pre-upgrade backups) gets
# deleted, only last per day is kepth with keep-daily
logger.warning("keep-within not found in restic forget prune config")
keeps = []
for key, val in self.config.retention.items():
keeps += [f"--{key}", val]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment