Last active
January 27, 2017 19:35
-
-
Save mswieboda/7c53b6360b59fd4dba651468da9e6a76 to your computer and use it in GitHub Desktop.
PSQL Dump and Reload
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
# Uncompressed | |
pg_dump dbname | |
psql dbname < infile | |
# Compressed | |
pg_dump dbname | gzip > filename.gz | |
gunzip -c filename.gz | psql dbname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment