Skip to content

Instantly share code, notes, and snippets.

@kvahuja
Created February 10, 2017 05:07
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 kvahuja/5ae64e1bc57b001c5e95f7ed715f28fd to your computer and use it in GitHub Desktop.
Save kvahuja/5ae64e1bc57b001c5e95f7ed715f28fd to your computer and use it in GitHub Desktop.
PgSQL Commands
# how to generate a dump for postgres
pg_dump --file "dmp.filename.ext" --host "hostname" --port "5432" --username "myusername" --password "changeme" --verbose --role "dbname" --format=c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment