Skip to content

A data recovery tool for deleted documents from MongoDB MMAPv1's storage engine

Notifications You must be signed in to change notification settings

etherfoundry/mongo-data-recovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Data Recovery

A data recovery tool written in C# which consumes a MongoDB database (the .### and .ns files), in the MMAPv1 storage engine, and attempts to retrieve deleted data from it.

This will produce many serialized BSON files (one per recovered document). You will have to run a second pass to get insertable documents out of this (this should be a simple task via https://github.com/mongodb/js-bson or similar)

There are 2 methods implemented:

  • Traversing the 'deleted records' linked list in the namespace file
  • Searching for a deleted record marker of 0xEEEEEEEE07

WiredTiger storage engine is not implemented.

If you expect to use this, plan to adjust it according to your needs, it was written in a pinch.

Methods influenced by "A method and tool to recover data deleted from a MongoDB (Jongseong Yoon, et al. 2017)"

About

A data recovery tool for deleted documents from MongoDB MMAPv1's storage engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages