Created
May 13, 2011 20:02
-
-
Save anewusername1/971219 to your computer and use it in GitHub Desktop.
Exporting / Importing a database in PostGres
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
pg_dump <database_name> > database_name.pgdump | |
cat database_name.pgdump | psql -d database_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment