我的mongodb现在不能运行了,当我想启动mongo的时候得到了错误的***aborting after invariant() failure
现在我想把collection-0-*.wt文件恢复到一个新的数据库,这是可能的吗?
发布于 2016-06-01 08:20:05
在MongoDB 3.2中,只有WiredTiger数据目录的完整备份才能复制到新实例中。WiredTiger集合或索引文件不是自包含的;它们依赖于WiredTiger.*编目文件中的其他元数据。如果数据文件不完整或不一致,那么您在启动时得到的不变量/断言就是预期的。
如果要备份和恢复单个集合,则应使用mongodump和mongorestore,例如:
mongodump --db test --collection northwind --host host1
mongorestore --db test dump/test/northwind.bson --host host2有关支持的完整备份过程,请参阅:MongoDB Backup Methods
https://stackoverflow.com/questions/37557319
复制相似问题