How to extract data from Mongo Backups

We enabled backup for our Mongo cluster. And when I downloaded an old snapshot via the UI, the files are in *.wt

I am trying to recover the old data for just one record in a collection. May I ask if there’s a way for me to decode it into a Json format, or download the backup snapshot in human readable format?

Thank you!

Hi @williamwjs,

I presume you downloaded the .tar.gz file and the extracted contents within were the *.wt files but please correct me if I am wrong here.

You can follow the restore procedure documentation. Once you have started the mongod instance against the extracted backup directory then you can use mongodump or mongoexport to extract the specific collection data from that mongod instance.

The following Connect to a Cluster using Command Line Tools documentation may also help.

Regards,
Jason

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.