Skip to content

Instantly share code, notes, and snippets.

@jhrr
Created June 21, 2019 14:30
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 jhrr/d235ae64e6369a7c0f366e4472748b8d to your computer and use it in GitHub Desktop.
Save jhrr/d235ae64e6369a7c0f366e4472748b8d to your computer and use it in GitHub Desktop.
$ docker exec -i $CONTAINER pg_restore --dbname=$DATABASE --verbose --clean -U $USER < pg_dump --format custom $DATABASE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment