Tuesday, August 11, 2015

MongoDB restore

To use Mongo DB mongorestore command:

put db dump file in following hierarchy:
dump/<db-name>/<dump-files>

Then go parent of dump folder and type:
mongorestore


It will restore all backup in respective db, depends on db-name where dump files are kept.