mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-02-17 09:23:56 +00:00
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:
committed by
Tobias Kaupat
parent
7ed9080c68
commit
29e46cad2c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user