Created
March 24, 2021 16:09
-
-
Save RahulJyala7/56ce94af1cc00561bee1b2bf80f99e88 to your computer and use it in GitHub Desktop.
Mongo Dump
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
docker exec e69e0bb63418 sh -c 'mongodump -u root -p admin --authenticationDatabase admin -d pia-entry-generator --archive --quiet' > db.dump | |
docker exec -i e69e0bb63418 sh -c 'mongorestore -u root -p admin --authenticationDatabase admin --archive' < db.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment