made everything a little bit easier to configure
This commit is contained in:
@ -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
|
@ -1,9 +1,12 @@
|
||||
[Unit]
|
||||
Description=Check restic backup Backblaze B2 for errors
|
||||
Description=Check restic backup for errors
|
||||
OnFailure=status-email-user@%n.service
|
||||
Conflicts=restic.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=lerentis
|
||||
Nice=10
|
||||
ExecStart=/usr/local/sbin/restic_check.sh
|
||||
Environment="HOME=/home/lerentis/"
|
||||
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
@ -1,8 +1,5 @@
|
||||
# Source: https://serverfault.com/questions/876233/how-to-send-an-email-if-a-systemd-service-is-restarted
|
||||
# Source: https://wiki.archlinux.org/index.php/Systemd/Timers#MAILTO
|
||||
|
||||
[Unit]
|
||||
Description=Send status email for %i to user
|
||||
Description=Send status popup for %i to user
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
Reference in New Issue
Block a user