二十九、MongoDB 恢复数据( mongorestore )本页总览二十九、MongoDB 恢复数据( mongorestore )语法 MongoDB mongorestore 命令脚本语法如下 $ mongorestore -h <hostname><:port> -d dbname <path> 参数说明 -h <:port>, -h<:port> MongoDB 所在服务器地址,默认为 localhost:27017 –db, -d 需要恢复的数据库实例 例如:test,这个名称也可以和备份时候的不一样,比如 test2 --drop