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 |
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 |
NewerOlder