Last active
January 30, 2019 21:17
-
-
Save gh0st026/bb49676ab8b42266cc73c28f72c4643a to your computer and use it in GitHub Desktop.
export PostGre SQL from docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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