Merge pull request 'Improve restic failure mail' (#237) from restic-mail into main
Reviewed-on: https://git.data.coop/data.coop/ansible/pulls/237
This commit is contained in:
commit
19d5c68ca2
1 changed files with 5 additions and 2 deletions
|
@ -1,9 +1,12 @@
|
|||
#!/bin/sh
|
||||
curl --silent smtp://{{ smtp_host }} --mail-from {{ services.restic.mail_from }} --mail-rcpt admin@data.coop --mail-rcpt datacoop-backup@reynir.dk --upload-file . << END_OF_MAIL
|
||||
curl --silent smtp://{{ smtp_host }} --mail-from {{ services.restic.mail_from }} \
|
||||
--mail-rcpt admin@data.coop --mail-rcpt datacoop-backup@reynir.dk \
|
||||
--upload-file .; cat << END_OF_MAIL
|
||||
From: Restic backup <{{ services.restic.mail_from }}>
|
||||
To: admin@data.coop
|
||||
Subject: Restic backup failed
|
||||
Date: $(date)
|
||||
Date: $(date -R)
|
||||
Message-ID: $(date +%s.%N)@{{ services.restic.domain }}
|
||||
|
||||
Dear sir or madam,
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue