forked from data.coop/ansible
15 lines
348 B
Plaintext
15 lines
348 B
Plaintext
|
#!/bin/sh
|
||
|
curl smtp://postfix --mail-from {{ services.restic.mail-from }} --mail-rcpt admin-hold@data.coop --upload-file . << END_OF_MAIL
|
||
|
From: Restic backup <{{ services.restic.mail-from }}>
|
||
|
To: admin-hold@data.coop
|
||
|
Subject: Restic backup failed
|
||
|
Date: $(date)
|
||
|
|
||
|
Dear sir or madam,
|
||
|
|
||
|
Tonight's backup failed!
|
||
|
|
||
|
Best,
|
||
|
Your backup software.
|
||
|
END_OF_MAIL
|