Skip to content

Instantly share code, notes, and snippets.

@nogorilla
Created March 28, 2016 18:06
Show Gist options
  • Select an option

  • Save nogorilla/6036cafca60c5dac9600 to your computer and use it in GitHub Desktop.

Select an option

Save nogorilla/6036cafca60c5dac9600 to your computer and use it in GitHub Desktop.
# create
pg_dump -U {user} {database_name} > ~/file.dump
#restore
psql {database_name} < ~/file.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment