Do something custom after successfull backup

Hi, I use mail in a box for a couple of months now. I really like it. The only thing that irratates me, is that I mis the mails when a backup has failed.

For all other things that i’m backing up. I use I call an healtchchecks url each time a backup is finished. When a url is not called for a period of time it will send me a message via telegram.

The thing is, I don’t get it implemented with mail in a box and dupclicati.

My question: Is there a way I can do something custom, like calling an url after a succesfull backup in mailinabox?

To trigger, I can also send a mail to a custom mail address.

Is it possible to send a mail to specific email address after backup?

Do you have an example of a failed MiaB backup where MiaB did not notify you of the failure?

If you look into mailinabox/management/ you will see the following

# Take a backup.
management/ 2>&1 | management/ "Backup Status"

You may modify it (it gets overwritten on each miab update) to include health check after backup is completed.

# Take a backup.
management/ 2>&1 | management/ "Backup Status" && curl -m 10 --retry 5

You can place an executable file at STORAGE_ROOT/backup/after-backup This file will be executed after a backup (but before the emails the administrator)