Skip to content

Don't exit on backup error or warning#46

Open
noplanman wants to merge 1 commit intofiaasco:masterfrom
noplanman:prevent-premature-exit
Open

Don't exit on backup error or warning#46
noplanman wants to merge 1 commit intofiaasco:masterfrom
noplanman:prevent-premature-exit

Conversation

@noplanman
Copy link
Contributor

When the backup exits with a warning or error, the set -e makes the script exit immediately.
This means that no post commands are called at all, which may be necessary regardless, like for health checks.

Instead, if the exit code is vital for any post commands, it should be added to explicitly to them.

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

Successfully merging this pull request may close these issues.

1 participant