Skip to content

Instantly share code, notes, and snippets.

View demonbane's full-sized avatar

Alex Malinovich demonbane

View GitHub Profile
#!/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
#!/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