2020-12-24 09:06:20 -06:00
|
|
|
# vim:ft=systemd
|
|
|
|
[Unit]
|
|
|
|
Description=Nightly backup service
|
2021-01-16 23:19:28 -06:00
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
2024-07-10 13:14:07 -05:00
|
|
|
StartLimitInterval=600
|
|
|
|
StartLimitBurst=5
|
2020-12-24 09:06:20 -06:00
|
|
|
|
|
|
|
[Service]
|
2021-01-16 23:47:29 -06:00
|
|
|
Type=oneshot
|
2020-12-24 09:06:20 -06:00
|
|
|
MemoryMax=256M
|
|
|
|
ExecStart=/opt/backup.sh
|
2024-07-10 13:14:07 -05:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5
|
2020-12-24 09:06:20 -06:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|