ansible/roles/docker/templates/restic/failure.sh.j2
Reynir Björnsson bb07389640 Make curl silent in restic scripts
Printing curl progress is just silly.
2024-12-22 12:44:16 +01:00

15 lines
355 B
Django/Jinja

#!/bin/sh
curl --silent smtp://{{ smtp_host }} --mail-from {{ services.restic.mail_from }} --mail-rcpt admin@data.coop --upload-file . << END_OF_MAIL
From: Restic backup <{{ services.restic.mail_from }}>
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