Skip to content

Instantly share code, notes, and snippets.

@anewusername1
Created May 13, 2011 20:02
Show Gist options
  • Save anewusername1/971219 to your computer and use it in GitHub Desktop.
Save anewusername1/971219 to your computer and use it in GitHub Desktop.
Exporting / Importing a database in PostGres
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