Skip to content

Instantly share code, notes, and snippets.

@demonbane
Created August 26, 2008 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demonbane/7208 to your computer and use it in GitHub Desktop.
Save demonbane/7208 to your computer and use it in GitHub Desktop.
#!/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