Skip to content

Instantly share code, notes, and snippets.

@klebervirgilio
Created March 5, 2013 19:47
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 klebervirgilio/5093575 to your computer and use it in GitHub Desktop.
Save klebervirgilio/5093575 to your computer and use it in GitHub Desktop.
POSTGRES DUMP
PGPASSWORD='secret' /usr/bin/pg_dump --username='username' --host='localhost' --port='5432' -xc -E=utf8 database >> dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment