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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With