databacker / mysql-backup

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

Configuration option for WEBHOOK_URL, available in scripts? #212

Closed salvisbh closed 1 year ago

salvisbh commented 1 year ago

It would be perfect if an ENV_Variable with a configurable WEBHOOK_URL was available in the shell scripts. This could for example be used to call webhooks like healthcheck.io with the backup result after the backup. If this is not desired, it would at least be helpful to install curl in the image.

A good example of a webhook usage can be found in the Postgres backup image of prodrigestivill, see https://github.com/prodrigestivill/docker-postgres-backup-local

deitch commented 1 year ago

That's a pretty good idea. Go for a PR?

salvisbh commented 1 year ago

Hi Deitch,

In the meantime, I used a different image for my backups because I work with multiple database types and I don't want to use a different image with different configurations for each database-type. I am implementing a 3-2-1 backup strategy with the following elements:

So my issue becomes invalid and it can be closed. Many thanks

deitch commented 1 year ago

Glad it worked out.