Created
May 29, 2019 08:09
-
-
Save ruizfrontend/bcc4237b11a4e136b4e6e5ea94d332a9 to your computer and use it in GitHub Desktop.
Docker import/export postgres db from running container
This file contains hidden or 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
cat DUMPFILE | docker exec -i CONTAINER pg_restore -U postgres -d DATABASE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment