mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2024-11-19 19:07:42 +01:00
adds keep_within setting to borg_retention_policy
option is available upstream
This commit is contained in:
parent
f5d7a0afb6
commit
4967ad6d20
@ -114,6 +114,11 @@ storage:
|
|||||||
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details.
|
# 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.
|
# At least one of the "keep" options is required for pruning to work.
|
||||||
retention:
|
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 %}
|
{% if borg_retention_policy.keep_secondly is defined %}
|
||||||
# Number of secondly archives to keep.
|
# Number of secondly archives to keep.
|
||||||
keep_secondly: {{ borg_retention_policy.keep_secondly }}
|
keep_secondly: {{ borg_retention_policy.keep_secondly }}
|
||||||
|
Loading…
Reference in New Issue
Block a user