Created
September 14, 2013 02:25
-
-
Save redesigned/6558336 to your computer and use it in GitHub Desktop.
Backup and Restore Database via SSH
This file contains 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
mysqldump --user username --password='password' databasename | gzip -9 > ./backup_database.sql.zip |
This file contains 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
cat ./backup_database.sql | mysql --user username --password=password databasename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment