
During debugging the script I inserted "echo" and "cat". Then I removed the "echo" but forgot the "cat". This breaks stuff. Undo cat.
17 lines
460 B
Django/Jinja
17 lines
460 B
Django/Jinja
#!/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
|
|
From: Restic backup <{{ services.restic.mail_from }}>
|
|
To: admin@data.coop
|
|
Subject: Restic backup failed
|
|
Date: $(date -R)
|
|
Message-ID: <$(date +%s.%N)@{{ services.restic.domain }}>
|
|
|
|
Dear sir or madam,
|
|
|
|
Tonight's backup failed!
|
|
|
|
Best,
|
|
Your backup software.
|
|
END_OF_MAIL
|