Restore imported all available dbs in dump folder

Hi,

I have taken dump of all available dbs in my sandbox server and then tried to import them to my local mongodb server.

When I used restore command as given below, it imported all the dbs available in dump folder.

mongorestore --uri “mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb/sample_mflix” –-drop dump

Is there a way to say mongodb to import specific db from dump instead of all ?

Regards,
Jacob

Yes. With the option –db. See mongorestore — MongoDB Database Tools for more details.