I just started using mongodb so my question might be a little basic. I have a folder with the collections I want to restore(this was a zip file I downloaded from my email). How do I use mongorestore to restore this db into my local db?


How about reading then manual. Simples form of that command is mongorestore directory/ where mongod is running localhost at port 27017 and that 'directory' have those dump files.

| improve this answer | |
  • Thank you, I was able to resolve it. – codergal Jun 10 at 2:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.