From b250ce9dc899f4954da81dfdb9d8e61887a0be41 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Wed, 10 Jul 2024 13:14:07 -0500 Subject: [PATCH] Enable automatic retries for backups within a short duration This should help alleviate some of the problems I've been having with Backblaze's accessibility during peak backup hours --- roles/backup/templates/backup.service | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/backup/templates/backup.service b/roles/backup/templates/backup.service index 7106cb1..bbe05bc 100644 --- a/roles/backup/templates/backup.service +++ b/roles/backup/templates/backup.service @@ -3,11 +3,15 @@ Description=Nightly backup service After=network-online.target Wants=network-online.target +StartLimitInterval=600 +StartLimitBurst=5 [Service] Type=oneshot MemoryMax=256M ExecStart=/opt/backup.sh +Restart=on-failure +RestartSec=5 [Install] WantedBy=multi-user.target