ansible/roles/services/templates/restic/failure.sh.j2

15 lines
346 B
Plaintext
Raw Normal View History

#!/bin/sh
2024-03-04 11:48:51 +00:00
curl smtp://{{ smtp_host }} --mail-from {{ services.restic.mail_from }} --mail-rcpt admin@data.coop --upload-file . << END_OF_MAIL
2024-03-04 12:30:58 +00:00
From: Restic backup <{{ services.restic.mail_from }}>
2024-03-04 13:15:52 +00:00
To: admin@data.coop
Subject: Restic backup failed
Date: $(date)
Dear sir or madam,
Tonight's backup failed!
Best,
Your backup software.
END_OF_MAIL