databacker / mysql-backup

image to enable automated backups of mysql databases in containers
648 stars 183 forks source link

Mail upon job status (especially on failure) #154

Open Fixmetal opened 3 years ago

Fixmetal commented 3 years ago

Hello, I just noticed that the image itself is not capable of sending an e-mail when something odd happened - might be a FS permission issue or whatever the reason but still. I think it might be a good idea to implement some kind of interface to an external (host) e-mail relay system so that a simple MAILTO field in mysql-backup cron would do the job.

deitch commented 3 years ago

I like the idea. Care to define an interface for it?I think fitting it in the cron isn't great, since this is an overall config.

Some people like notifications with every job finished; others just for errors.