Unit files for systemd
[moggers87-useful.git] / templates / backup.service
blobb91d81dac3e5a6764cfd322bc5092d3537fbad5d
1 [Unit]
2 Description=Backup with restic
3 Wants=backup.timer
4 StartLimitInterval=200
5 StartLimitBurst=5
7 [Service]
8 Nice=19
9 IOSchedulingClass=idle
10 IOSchedulingPriority=7
11 Type=oneshot
12 ExecStart=${prefix}/bin/backup.sh backup
13 Environment=BACKUP_CONFIG=/etc/moggers87/backuprc
14 Environment=HOME=/etc/moggers87
15 Restart=on-failure
16 RestartSec=30
18 [Install]
19 WantedBy=multi-user.target