有一份 4 年前的 Mongodb 冷备数据,现在需要恢复出来使用。4 年前留下的是一个 tar 格式的文件,19G 大小,预览文件内容是这样的:
mongodb/
mongodb/WiredTiger.lock
mongodb/index-3--2162478702715552952.wt
mongodb/diagnostic.data/
mongodb/diagnostic.data/metrics.2019-11-12T20-37-31Z-00000
mongodb/diagnostic.data/metrics.2019-12-03T12-08-23Z-00000
mongodb/diagnostic.data/metrics.2019-11-26T13-42-24Z-00000
mongodb/diagnostic.data/metrics.2019-12-05T17-38-23Z-00000
mongodb/diagnostic.data/metrics.2019-11-15T02-22-31Z-00000
mongodb/diagnostic.data/metrics.2019-12-01T03-58-23Z-00000
mongodb/diagnostic.data/metrics.2019-11-04T12-04-09Z-00000
mongodb/diagnostic.data/metrics.2019-11-03T09-32-45Z-00000
mongodb/diagnostic.data/metrics.2019-11-03T09-22-27Z-00000
mongodb/diagnostic.data/metrics.2019-11-20T17-17-16Z-00000
mongodb/diagnostic.data/metrics.2019-11-08T14-42-31Z-00000
mongodb/diagnostic.data/metrics.2019-11-03T09-27-58Z-00000
mongodb/diagnostic.data/metrics.2019-11-03T09-33-52Z-00000
mongodb/diagnostic.data/metrics.2019-11-10T20-37-31Z-00000
mongodb/diagnostic.data/metrics.2019-11-23T05-48-39Z-00000
mongodb/diagnostic.data/metrics.2019-11-22T23-37-16Z-00000
mongodb/diagnostic.data/metrics.2019-11-04T10-51-02Z-00000
mongodb/diagnostic.data/metrics.2019-11-03T09-37-15Z-00000
mongodb/diagnostic.data/metrics.2019-11-06T09-32-31Z-00000
mongodb/diagnostic.data/metrics.2019-12-10T06-10-22Z-00000
mongodb/diagnostic.data/metrics.2019-11-18T12-06-17Z-00000
mongodb/diagnostic.data/metrics.2019-12-07T23-00-22Z-00000
mongodb/diagnostic.data/metrics.2019-11-03T09-24-19Z-00000
mongodb/diagnostic.data/metrics.2019-11-03T09-26-23Z-00000
mongodb/diagnostic.data/metrics.2019-11-28T20-58-23Z-00000
mongodb/diagnostic.data/metrics.2019-11-03T10-08-45Z-00000
mongodb/diagnostic.data/metrics.2019-11-03T09-39-15Z-00000
mongodb/_mdb_catalog.wt
mongodb/collection-0--2162478702715552952.wt
mongodb/collection-4--6287796740362363623.wt
mongodb/index-5--2162478702715552952.wt
mongodb/journal/
mongodb/journal/WiredTigerPreplog.0000000001
mongodb/journal/WiredTigerPreplog.0000000002
mongodb/journal/WiredTigerLog.0000000434
mongodb/WiredTiger.wt
mongodb/collection-2--4216008088303394775.wt
mongodb/WiredTigerLAS.wt
mongodb/WiredTiger.turtle
mongodb/index-6--6287796740362363623.wt
mongodb/index-4--2162478702715552952.wt
mongodb/collection-2--6287796740362363623.wt
mongodb/index-3--6287796740362363623.wt
mongodb/index-1--2162478702715552952.wt
mongodb/index-1--4216008088303394775.wt
mongodb/collection-0--4216008088303394775.wt
mongodb/mongod.lock
mongodb/WiredTiger
mongodb/collection-0--6287796740362363623.wt
mongodb/index-4--4216008088303394775.wt
mongodb/storage.bson
mongodb/sizeStorer.wt
mongodb/index-2--2162478702715552952.wt
mongodb/index-3--4216008088303394775.wt
mongodb/index-1--6287796740362363623.wt
mongodb/index-5--6287796740362363623.wt
有没有熟悉 mogodb 的大佬看一眼,这究竟是啥备份数据呀,怎么恢复呀,我用 MongoDB 自带的导入命令尝试,始终说格式不对。我从最新的 7.0.4 版本,一路试到 3.0 版本,全部说格式不对。难不成这个是什么第三方工具导出的数据?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.