Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility of POSTBACKUPERROR? (Command to run if backup failed) Or way to achieve this behaviour? #56

Open
josephrocca opened this issue May 17, 2017 · 0 comments

Comments

@josephrocca
Copy link

josephrocca commented May 17, 2017

Hello! Currently we can run a command when the backup finishes with the POSTBACKUP option. I'm wondering whether there's a way to run a command specifically when the backup fails, or if there's some way to detect if it failed from within the POSTBACKUP option?

My use case is: I have no idea how to set up mail on my server, and would like to use a simple nodejs script like this:

require('nodemailer').createTransport('smtps://blablablabh.com%40gmail.com:[email protected]').sendMail({to:'[email protected]', from:'automongobackup', subject:'automongobackup ERROR - check your logs!'});

I'm a bash noob, so if this is not something that's achievable, that's cool - I'll try wrangle together some workaround. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant