注意:mongorestore版本要和mongodump版本一致,否则容易出问题
mongorestore恢复某个数据库的所有集合
/home/work/mongod/bin/mongorestore --authenticationDatabase admin --host 10.10.10.10 --port 28008 --username mongo_dba --password 123456 --db gall /home/work/mongodb/mongodb_backup/gall
mongorestore恢复某个集合数据
/home/work/mongodb/3.6.17/bin/mongorestore --authenticationDatabase ai_open --host 10.10.10.10 --port 27017 --username apple --password 123456
--db db_name --collection table_name ./bak/ai_open_caps/ai_caps_skill_info.bson
5555555