Created
July 1, 2016 13:24
-
-
Save oliverlundquist/ba8a0e85bbb0a8c4707ee33b815e5138 to your computer and use it in GitHub Desktop.
Database Dump
This file contains hidden or 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
ssh -i ~/.vagrant.d/insecure_private_key 192.168.100.109 ' | |
HOST='0.0.0.0' | |
USERNAME=root | |
PASSWORD=root | |
DATABASE=mystore2 | |
TABLES='mysql --host=$HOST --user=$USERNAME --password=$PASSWORD --database=$DATABASE --batch --silent --execute \'SHOW TABLES LIKE \'chips_%\'\'' | |
mysqldump --host=$HOST --user=$USERNAME --password=$PASSWORD --no-data $DATABASE $TABLES | |
' > test.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment