Skip to content

Instantly share code, notes, and snippets.

@mattmc3
Created April 6, 2017 00:38
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 mattmc3/570785cfe9cc6c7ce1f414bd6cb6efce to your computer and use it in GitHub Desktop.
Save mattmc3/570785cfe9cc6c7ce1f414bd6cb6efce to your computer and use it in GitHub Desktop.
Postgres dump schema
# Dump a schema to a .sql file
pg_dump -U postgres -s {{db}} > {{db}}.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment