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?
Mongodb – using mongorestore for a db present in the computer
mongodbmongorestore
Related Question
- MongoDB – Restore .gz Backup with New Database Name Using Mongorestore r3.2.9
- Mongodb – Can mongorestore replay oplog via mongos
- Mongodb – How to restore Mongo DB tar.gz archive
- Mongodb – How to restore from .wt files
- MongoDB – Mongorestore is not working as expected
- Mongodb – Restore mongoDB by –repair and WiredTiger
Best Answer
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.