2019-01-01 18:38:24 +00:00
|
|
|
[Unit]
|
2019-01-07 20:56:37 +00:00
|
|
|
Description=Backup with restic
|
2019-01-07 21:11:11 +00:00
|
|
|
OnFailure=status-popup-user@%n.service
|
2019-01-01 18:38:24 +00:00
|
|
|
|
|
|
|
[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
|