Created
February 23, 2011 18:20
-
-
Save unbracketed/840872 to your computer and use it in GitHub Desktop.
Recipes for dumping and restoring different databases, using different compression formats
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
#Dump | |
mysqldump db | gzip -c > db.sql.gz | |
pg_dump db | gzip -c > db.sql.gz | |
#use gzip --fast | |
#Restore | |
gunzip < db.sql.gz | mysql db | |
bunzip2 < db.sql.bz2 | mysql db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment