From 4967ad6d20ebc7baacb6b4e1876d576a46ead01f Mon Sep 17 00:00:00 2001 From: Dirk Sarpe Date: Tue, 23 May 2023 16:42:02 +0200 Subject: [PATCH] adds keep_within setting to borg_retention_policy option is available upstream --- templates/config.yaml.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/config.yaml.j2 b/templates/config.yaml.j2 index dc7b485..5d0771b 100644 --- a/templates/config.yaml.j2 +++ b/templates/config.yaml.j2 @@ -114,6 +114,11 @@ storage: # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details. # At least one of the "keep" options is required for pruning to work. retention: +{% if borg_retention_policy.keep_within is defined %} + # Keep all archives within this time interval. + keep_within: {{ borg_retention_policy.keep_within }} +{% endif %} + {% if borg_retention_policy.keep_secondly is defined %} # Number of secondly archives to keep. keep_secondly: {{ borg_retention_policy.keep_secondly }}