From bb97bca456bcb473f01e0c5423d1b220ea2cb22d Mon Sep 17 00:00:00 2001 From: Jeltz Date: Sun, 23 May 2021 14:09:01 +0200 Subject: [PATCH] Increase RandomizedDelaySec when hourly = 0 --- roles/borgbackup_client/templates/borgmatic.timer.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/borgbackup_client/templates/borgmatic.timer.j2 b/roles/borgbackup_client/templates/borgmatic.timer.j2 index 4e575bc..3511ffd 100644 --- a/roles/borgbackup_client/templates/borgmatic.timer.j2 +++ b/roles/borgbackup_client/templates/borgmatic.timer.j2 @@ -6,10 +6,11 @@ Description=Timer for borgmatic backup [Timer] {% if borg_keep_hourly > 0 %} OnCalendar=hourly +RandomizedDelaySec=60m {% else %} OnCalendar=daily +RandomizedDelaySec=24h {% endif %} -RandomizedDelaySec=60m FixedRandomDelay=true [Install]