I installed the mongo using the docker, Now I need to take the mongodb dump and restore.
1) where can I download these two tools?
2) I don't need to install the complete mongo since the mongo is already installed using docker, I just need to download these two mongo tools and use the IP and PORT of docker mongo to dump and restore.
Thanks,
Harry
MongoDB install this tool beside the core database so you can just execute commands inside the container or install mongod
in your system and use this you can use below command to get MongoDB data:
docker exec <CONTAINER> sh -c 'exec mongodump --db somedb --gzip --archive' > dump_`date "+%Y-%m-%d"`.gz
also, you can get these utilities without mongo core. here is an example package for alpine-linux: mongodb-tools. and for other distro you can make it yourself: mongodb-tools