Last active
January 24, 2017 14:33
-
-
Save bobishh/cee29c25f8f3546d8c791194bbc4c514 to your computer and use it in GitHub Desktop.
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
#create dump: | |
pg_dump -h <HOSTNAME> -U <USERNAME> -b -Fc <DBNAME> | bzip2 -c > <WHERE_TO_DUMP>.bz2 | |
#restore dump: | |
bzip2 -d -c <FILE> | pg_restore -h <HOSTNAME> -U <USERNAME> -d <DBNAME> -Fc -O -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment