homeserver/roles/mgrote_restic/templates/restic_mail.service.j2

9 lines
259 B
Text
Raw Permalink Normal View History

{{ 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 }}'