mongodb recovery removed records

微笑、不失礼 提交于 2019-12-24 01:24:25

问题


I have a two-member replica set, I accidentally removed all documents in an collection, I am not sure how I did this, but it's gone. Is it possible to get all the data back?


回答1:


Unless you have a backup (always recommended for just this type of thing), or one of the replicas is using slavedelay, then I am afraid the removal of the records is final. You might have been able to force a shutdown in time to save the data on-disk if you killed the process before the next fsync to disk (similarly if you broke replication before the removal was replicated), but even then it would be tricky.



来源:https://stackoverflow.com/questions/12175712/mongodb-recovery-removed-records

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!