Created
August 26, 2008 04:04
-
-
Save demonbane/7208 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -n "Dumping database... " | |
if mysqldump -u xxxx mydbname > db/fulldump.sql; then | |
echo "done." | |
echo -n "Committing new changes... " | |
if git add db/fulldump.sql; then | |
echo "done." | |
else | |
echo 'failed!' | |
exit 1 | |
fi | |
else | |
echo 'failed!' | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment