Implemented a simple mail notification after backups using mailx. This can be used to send mail via an external SMTP server. Syntax uniformity is questionable.

This commit is contained in:
mrclschstr
2019-07-24 10:25:48 +02:00
committed by Tobias Kaupat
parent 7ed9080c68
commit 29e46cad2c
3 changed files with 15 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ FROM alpine:3.10.1
COPY --from=build /etc/ssl/certs /etc/ssl/certs
COPY --from=build /bin/restic /bin/restic
RUN apk add --update --no-cache fuse openssh-client
RUN apk add --update --no-cache fuse openssh-client heirloom-mailx
RUN \
mkdir -p /mnt/restic /var/spool/cron/crontabs /var/log; \
@@ -25,6 +25,7 @@ ENV \
BACKUP_CRON="0 */6 * * *" \
RESTIC_FORGET_ARGS="" \
RESTIC_JOB_ARGS=""
MAILX_ARGS=""
# /data is the dir where you have to put the data to be backed up
VOLUME /data