MongoDB Basic mongorestore of local default mongod dump


Example

mongorestore --db mydb mydb.dump.2016-08-27_12:44/mydb --drop --gzip

This command will first drop your current 'mydb' database and then restore your gzipped bson dump from the 'mydb mydb.dump.2016-08-27_12:44/mydb' archive dump file.