made everything a little bit easier to configure

This commit is contained in:
2019-01-07 21:56:37 +01:00
parent 8aaaa8fa7c
commit 579ba632d6
6 changed files with 19 additions and 21 deletions

View File

@ -1,10 +1,12 @@
[Unit]
Description=Backup with restic to Backblaze B2
Description=Backup with restic
OnFailure=status-email-user@%n.service
[Service]
Type=simple
Nice=10
User=lerentis
ExecStart=/usr/local/sbin/restic_backup.sh
# $HOME or $XDG_CACHE_HOME must be set for restic to find /root/.cache/restic/
Environment="HOME=/home/lerentis/"
Environment="HOME=/home/lerentis/"
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket