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?

1 Answer 1


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.

  • Thank you, I was able to resolve it.
    – codergal
    Commented Jun 10, 2020 at 2:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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