I received a copy of mongo dbpath directory copy from a peer. I copied entire content to my local dbpath with an intention to work on the collections. However, my local is not recognizing the databases or the collections. Am I missing anything?
Asked
Active
Viewed 9,584 times
1 Answers
3
The WiredTiger.wt file is a crucial metadata file that keeps track of the state of the whole database and all the *.wt files. Hence, the content of this file is deployment specific, and not transferable to other deployments. It is not possible to recreate the content of this file.
If you have a known good backup of the whole dbpath, you may be able to restore to a valid state of the database, as long as you restore the dbpath as a whole.
Please see MongoDB Backup Methods for instructions and information on supported backup and restore methods.
Md Haidar Ali Khan
- 6,523
- 9
- 40
- 62