mongodbimportrobo3t

How to import dump folder into mongodb database?


I have created a mongo dump from a remote server and .bson and .metadata files stored in to a folder.

I want to import this folder into my local mongodb. I am using robomongo as a mongodb client ui.

I got some command which are importing json files one by one but I want import all the files at a time by robomongo or cmd.


Solution

  • Try with this:

    mongorestore -d db_name dump_folder_path