Add some redundancy to 9iron backups

This commit is contained in:
Salt 2020-09-23 20:37:03 -05:00
parent 2c7af24213
commit 75e152b5bf

View File

@ -1,11 +1,14 @@
# vim:ft=dosini: # vim:ft=dosini:
[Unit] [Unit]
Description=9iron backup service Description=9iron backup service
StartLimitIntervalSec=3600
StartLimitBurst=5
[Service] [Service]
Type=oneshot
MemoryMax=256M MemoryMax=256M
ExecStart=/opt/backups/backup.sh ExecStart=/opt/backups/backup.sh
Restart=on-failure
RestartSec=90
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target