2019-01-01 18:38:24 +00:00
|
|
|
[Unit]
|
2019-01-07 20:56:37 +00:00
|
|
|
Description=Backup with restic
|
2019-01-01 18:38:24 +00:00
|
|
|
OnFailure=status-email-user@%n.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Nice=10
|
2019-01-07 20:56:37 +00:00
|
|
|
User=lerentis
|
2019-01-01 18:38:24 +00:00
|
|
|
ExecStart=/usr/local/sbin/restic_backup.sh
|
|
|
|
# $HOME or $XDG_CACHE_HOME must be set for restic to find /root/.cache/restic/
|
2019-01-07 20:56:37 +00:00
|
|
|
Environment="HOME=/home/lerentis/"
|
|
|
|
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|