Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mongo 3.0.6 restore raw WT files

Tags:

mongodb

we had a backup fail on the automated mongoexport/restore, as a secondary backup we also copy all the mongo wiretiger (.wt) files. is there a way to restore from those? I have tried to just copy them back into the data folder but it never seems to read it.

like image 271
Chadit Avatar asked Sep 13 '15 15:09

Chadit


People also ask

How to restore data in MongoDB?

The basic way to restore a database is to use the mongorestore command to specify the backup directory (dump directory) without any options. This option is suitable for databases located in the localhost (127.0. 0.1) using the port 27017.

What is WiredTiger wt file?

WiredTiger stores databases in a durable format through writing data to files it has created in the database directory. These include data files representing tables in a MongoDB database, a history store file used to track previous versions of the database tables, as well as other metadata files for the entire system.

What is Mongo wt file?

wt files contain the data of the MongoDB collections and indexes that you observe as a client connected to a MongoDB instance. Once you've identified the WT ident value for the collection or index you want to inspect you can use that in the URI argument to the wt dump command.


1 Answers

There is a lot of other meta data written outside *. Wt files. As with nmap1 we could only copy collection files, with Wt this does not work.

like image 162
profesor79 Avatar answered Nov 16 '22 02:11

profesor79