Created
October 25, 2012 23:42
-
-
Save jaymiejones86/3956180 to your computer and use it in GitHub Desktop.
Postgres Dump and Export
This file contains hidden or 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 | |
pg_dump -U username -W -h localhost dbname -f dump.sql | |
# Import | |
psql -U username -h localhost dbname -f /home/username/dump.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment