diff --git a/roles/borgbackup_client/templates/borgmatic.timer.j2 b/roles/borgbackup_client/templates/borgmatic.timer.j2 index e0e3927..3511ffd 100644 --- a/roles/borgbackup_client/templates/borgmatic.timer.j2 +++ b/roles/borgbackup_client/templates/borgmatic.timer.j2 @@ -4,8 +4,13 @@ Description=Timer for borgmatic backup [Timer] +{% if borg_keep_hourly > 0 %} OnCalendar=hourly RandomizedDelaySec=60m +{% else %} +OnCalendar=daily +RandomizedDelaySec=24h +{% endif %} FixedRandomDelay=true [Install]