Created
October 28, 2014 15:24
-
-
Save manumilou/68713b305e6aeebc74e5 to your computer and use it in GitHub Desktop.
Fast database dump and restore
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
# One liner dump and compress | |
drush sql-dump | gzip > db_dump.XXXX.sql.gz | |
# One liner decompress and restore | |
zcat db_dump.XXXX.sql.gz | mysql -u user -p dbname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment