Importing a dumped MongoDB database

  • Cmd to the path where you placed your dump folder
  • Make sure that mongo server is running an execute the following command:

Now, wait a moment while the database is restored:


A couple of things to keep mind:

  • As we said at the beginning remember to position yourself in the dump  folder before running mongorestore (otherwise you will have to specify the location of the dump as a switch)
  • mongorestore must run from the O.S CLI not from inside the mongodb shell.

And that´s all 🙂