Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Export from mongo:
- #Bash into docker :
- docker exec -it <container_id> /bin/bash
- #Export collection:
- mongoexport --db <db_name> -c <collection_name> --out <file_name>.json
- # back to local shell
- exit
- #CoPy file :
- docker cp <container-id>:/path/to/file ./local-dir
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement