Skip to content

Instantly share code, notes, and snippets.

@domguard
Created October 4, 2012 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domguard/3832708 to your computer and use it in GitHub Desktop.
Save domguard/3832708 to your computer and use it in GitHub Desktop.
Cloning PG databases
pg_dump -h 172.26.76.100 -p 5432 -U username your_db | psql -h localhost -p 5432 -U username your_db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment