Created
April 26, 2013 13:31
-
-
Save igorescobar/5467391 to your computer and use it in GitHub Desktop.
This command executes a full MySQL dump on a remote machine and transfers it back to your local machine.
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 user@host "mysqldump --lock-tables=0 -h HOST -u USER -pPASSWORD --all-databases | gzip -c" > ~/full_mysql_dump.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment