Skip to content

Instantly share code, notes, and snippets.

@lukeasrodgers
Last active December 12, 2015 10:18
Show Gist options
  • Save lukeasrodgers/4758306 to your computer and use it in GitHub Desktop.
Save lukeasrodgers/4758306 to your computer and use it in GitHub Desktop.
mysql dumping and importing
mysqldump DB -hHOST > OUTFILE.sql
# copy to local
rsync -avPz --progress USER@HOST:/PATH/TO/OUTFILE.sql .
# import to local db
mysql -uroot -p -DDATABASE < OUTFILE.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment