Correctly use ExecStart for backups

master
Quentin Duchemin 2023-04-11 11:48:58 +02:00
parent 62f7d8b1e6
commit 9ecf704015
Signed by: Chosto
GPG Key ID: 96AB8AE7DFEA3D74
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@ OnFailure=notify-backup-failure.service
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=RESTIC_PASSWORD=$(cat /root/restic) restic -r /backup/restic --verbose backup --exclude '/home/.*' /home ExecStart=/bin/bash -c 'RESTIC_PASSWORD=$(cat /root/restic) restic -r /backup/restic --verbose backup --exclude "/home/.*" /home'