Skip to content

Email notification on Success backup #106

Answered by erikw
quath2021 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, great to hear that you're having fun and learning!

The failure email uses the systemd service unit feature OnFailure:
https://github.com/erikw/restic-automatic-backup-scheduler#optional-email-notification-on-failure

In the documentation

https://www.freedesktop.org/software/systemd/man/systemd.unit.html

I see there's also a that there's also a OnSuccess . Thus I think you could probably easily achieve this. Try setting up the failure notification successfully first, then simply add an individual line in the service file using OnSuccess instead and see what happens.

Good luck!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by erikw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants