Skip to content

Instantly share code, notes, and snippets.

@IgorM-Oliveira
Last active October 30, 2023 12:31
Show Gist options
  • Save IgorM-Oliveira/4a2e9b262555d954b809657db602e4fd to your computer and use it in GitHub Desktop.
Save IgorM-Oliveira/4a2e9b262555d954b809657db602e4fd to your computer and use it in GitHub Desktop.
pg_restore in docker image

docker cp /home/igorm-oliveira/Downloads/gsa202302282100.custom gsa_postgres:/
docker exec -it gsa_postgres bash
createdb -U postgres gsa_2023-03-01
pg_restore -U postgres -d gsa_2023-03-01
pg_restore -U postgres -d gsa_2023-03-01 /gsa202302282100.custom -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment