20
Mar

Restore a mongodump with mongo restore

Extract the .tar.gz file created by mongodump. dump is the default folder name.

In mongodb 3.0 or above you need to specify the database name to restore to with the -d flag:

mongorestore -d [your_db_name] [your_dump_dir]