Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

add --keep-within forget option in crontab file #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions templates/restic.cron.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down