Skip to content

Instantly share code, notes, and snippets.

@aymanosman
Last active August 29, 2015 14:17
Show Gist options
  • Save aymanosman/4afd72ae83da42267a9d to your computer and use it in GitHub Desktop.
Save aymanosman/4afd72ae83da42267a9d to your computer and use it in GitHub Desktop.
pg_restore command
createdb dbname
pg_restore -d dbname -Ocxv db.dump
# -c Clean, -O no owner, -v verbose, -x no privileges no acl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment