diff --git a/templates/restic.cron.j2 b/templates/restic.cron.j2 index 62f931a..0636a4b 100644 --- a/templates/restic.cron.j2 +++ b/templates/restic.cron.j2 @@ -20,6 +20,7 @@ RESTIC_PASSWORD={{ item.password | trim | quote }} {%- if item.retention.weekly is defined %} --keep-weekly {{ item.retention.weekly }}{% endif -%} {%- if item.retention.monthly is defined %} --keep-monthly {{ item.retention.monthly }}{% endif -%} {%- if item.retention.yearly is defined %} --keep-yearly {{ item.retention.yearly }}{% endif -%} +{%- if item.retention.within is defined %} --keep-within {{ item.retention.within }}{% endif -%} {%- if item.retention.tags is defined %} --keep-tag {% for tag in item.retention.tags %}{{ tag }}{% if not loop.last %},{% endif %}{% endfor %}{% endif -%}{% if restic_cron_stdout_file %} >>{{ restic_cron_stdout_file }}{% endif %}{% if restic_cron_stderr_file %} 2>>{{ restic_cron_stderr_file }}{% endif %} {% endif %}