Skip to content

Instantly share code, notes, and snippets.

@jaymiejones86
Created October 25, 2012 23:42
Show Gist options
  • Save jaymiejones86/3956180 to your computer and use it in GitHub Desktop.
Save jaymiejones86/3956180 to your computer and use it in GitHub Desktop.
Postgres Dump and Export
# 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