-
Notifications
You must be signed in to change notification settings - Fork 366
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
mysql-backup-s3: set '-o pipefail' to catch errors when database not found #86
Comments
@byrnedo That's a good idea. Could you please make a PR ? |
@OlivierCuyp done. Sh doesn't support -u and either way it would have probably broken certain scripts, so I just changed it to |
@byrnedo sorry for the late answer. There no real tests. From what I read I guess you tested it on your side. If you confirm so I would merge the PR. |
No, haven't tested it |
Ok, I'll dedicate some time to test it then ;) |
Hi @byrnedo, thanks for your proposal. I have no experience with both of these test frameworks. |
Hi,
You have
'set -e'
at the top of thebackup.sh
script.Right now, the
mysqldump ...|gzip...
command wont fail if mysqldump returns an error.If you add
It'll catch that. You could also add `set -euo pipefail' to catch unset variables too.
I assume this affects other images you have too.
The text was updated successfully, but these errors were encountered: