homeserver/roles/mgrote_restic/templates/restic_mail.service.j2
Michael Grote caad4aeb0f
All checks were successful
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
restic: fix backups dirs, secrets and mails
v

ff

dd

dd

f

ff

ff

ff

ff

d

ff

f

f
2024-05-25 21:56:56 +02:00

9 lines
259 B
Django/Jinja

{{ file_header | default () }}
[Unit]
Description=Send a Mail in case of an error in restic.service.
[Service]
Type=oneshot
ExecStart=/bin/bash -c '/bin/systemctl status restic.service | mail -aFROM:restic@mgrote.net -s "[ERROR] restic - %H" {{ my_mail }}'