mongorestore 恢复失败

如下,Mac os x系统上备份的数据想恢复到云服务器上的mongo容器内,其他几个库恢复正常,这个库是最近新建的,恢复失败了

mongorestore --authenticationDatabase admin -u admin --nsInclude='wallhaven.*'   wallhaven/
2020-09-23T18:56:36.654+0800    preparing collections to restore from
2020-09-23T18:56:36.654+0800    don't know what to do with file "wallhaven/thumb.bson", skipping...
2020-09-23T18:56:36.654+0800    don't know what to do with file "wallhaven/thumb.metadata.json", skipping...
2020-09-23T18:56:36.654+0800    0 document(s) restored successfully. 0 document(s) failed to restore.

mac系统mongodb版本为4.0.4, 云服务器与docker容器mongo的版本都是4.4.1

阅读 2.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进