LearnFast.Ninja

Restore mongodump database

How to restore dump file with mongorestore

Step 1:
Copy the dump folder from the server to data/backups/

Step 2:
Then use this command to restore all dbs:
D:\mongodb\bin>mongorestore ../data/backup/dump-2014-06-18

Step 3:
Use this to restore one database:
D:\mongodb\bin>mongorestore ../data/backup/dump-2014-06-18/database_name

Tags

mongodb

backup mongodump mongorestore