restic-systemd-automatic-ba.../etc/systemd/system/restic-backup.service
2019-01-07 22:11:11 +01:00

12 lines
324 B
Desktop File

[Unit]
Description=Backup with restic
OnFailure=status-popup-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=SSH_AUTH_SOCK=%t/ssh-agent.socket