fdocr / martilla

Easy to configure DB backup tool for simple everyday use on UNIX based systems
https://visualcosita.com/martilla-tool-for-db-backups/
MIT License
10 stars 4 forks source link

Give notifiers a configuration option for success/failure events #7

Closed fdocr closed 4 years ago

fdocr commented 4 years ago

I'm thinking a configuration for the Notifier base class would be helpful to disable success/error notifications. It should work with this layout in the configuration file:

notifiers:
- type: 'slack'
  options:
    slack_channel: '#backups'
    slack_webhook_url: https://hooks.slack.com/services/XXXXX/YYYYY/ZZZZZ
    on_failure:  false
    on_success: true

Both options should default to true

ewelinasobora commented 4 years ago

I'm on it :)