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?

  • 1
    We'll need more information to be able to provide suggestions. Did you stop your destination MongoDB server before copying files into the dbPath? Was your local dbPath empty before you copied the content of the backup? What are the source and destination versions of MongoDB server (x.y.z)? Were there any relevant messages or warnings when you started the destination MongoDB server?
    – Stennie
    Apr 24 '18 at 11:02

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.

For further your ref here, here and here


Not the answer you're looking for? Browse other questions tagged or ask your own question.