Restore imported all available dbs in dump folder


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://” –-drop dump

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


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