ansible/roles/backup/templates/backup.service

19 lines
313 B
Desktop File

# vim:ft=systemd
[Unit]
Description=Nightly backup service
After=network-online.target
Wants=network-online.target
StartLimitInterval=600
StartLimitBurst=5
[Service]
Type=oneshot
#MemoryMax=512M
Environment="GOGC=20"
ExecStart=/opt/backup.sh
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target