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
This commit is contained in:
Salt 2024-07-10 13:14:07 -05:00
parent 142e589f84
commit b250ce9dc8

View File

@ -3,11 +3,15 @@
Description=Nightly backup service Description=Nightly backup service
After=network-online.target After=network-online.target
Wants=network-online.target Wants=network-online.target
StartLimitInterval=600
StartLimitBurst=5
[Service] [Service]
Type=oneshot Type=oneshot
MemoryMax=256M MemoryMax=256M
ExecStart=/opt/backup.sh ExecStart=/opt/backup.sh
Restart=on-failure
RestartSec=5
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target