From c6b768e1bb587b7d2364f7251e4c814f0bb083b8 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Mon, 10 May 2021 13:02:45 +0200 Subject: [PATCH] Don't run borgmatic every hour if not needed --- roles/borgbackup_client/templates/borgmatic.timer.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/borgbackup_client/templates/borgmatic.timer.j2 b/roles/borgbackup_client/templates/borgmatic.timer.j2 index e0e3927..4e575bc 100644 --- a/roles/borgbackup_client/templates/borgmatic.timer.j2 +++ b/roles/borgbackup_client/templates/borgmatic.timer.j2 @@ -4,7 +4,11 @@ Description=Timer for borgmatic backup [Timer] +{% if borg_keep_hourly > 0 %} OnCalendar=hourly +{% else %} +OnCalendar=daily +{% endif %} RandomizedDelaySec=60m FixedRandomDelay=true