Skip to content

Instantly share code, notes, and snippets.

@gh0st026
Last active January 30, 2019 21:17
Show Gist options
  • Save gh0st026/bb49676ab8b42266cc73c28f72c4643a to your computer and use it in GitHub Desktop.
Save gh0st026/bb49676ab8b42266cc73c28f72c4643a to your computer and use it in GitHub Desktop.
export PostGre SQL from docker container
CONTAINER_NAME=Container
DUMP_FILE=dump.sql
sudo docker exec -u postgres ${CONTAINER_NAME} pg_dumpall -c > ${DUMP_FILE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment