Skip to content

Commit

Permalink
adds keep_within setting to borg_retention_policy
Browse files Browse the repository at this point in the history
option is available upstream
  • Loading branch information
dirks committed May 25, 2023
1 parent f5d7a0a commit 4967ad6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 4967ad6

Please sign in to comment.