8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, How are you doing to send mail on post backup? I tried to use a script but the mail command does not exists on the container
The text was updated successfully, but these errors were encountered:
I propose you use a separate container for that, like apprise-microservice. See here for an example: #29 (comment)
Sorry, something went wrong.
I've finally implemented a script that installs msmtp and send a mail containing the logs of the backup:
# Install msmtp if not exists if ! command -v msmtp &> /dev/null then apk add --update --no-cache msmtp ln -sf /usr/bin/msmtp /usr/sbin/sendmail fi DCLOGS=$(docker logs --since "10h" -t resticker) echo -e "Subject: Restic backup $1\n\nLast 10 hours logs:\n${DCLOGS}\n" | msmtp "${DEST_MAIL}"
In my dc file I'm using it like this:
POST_COMMANDS_SUCCESS: |- /scripts/send-mail.sh SUCCESS POST_COMMANDS_FAILURE: |- /scripts/send-mail.sh FAILURE DEST_MAIL: admin@domain.tld
I'll look into the notification service, may be interesting as global notification for all my apps
No branches or pull requests
Hi,
How are you doing to send mail on post backup?
I tried to use a script but the mail command does not exists on the container
The text was updated successfully, but these errors were encountered: