I have collection-0-xxx.wt and index-0-xxx.wt files simply copied from another dbpath.
I am wondering if those files are enough to restore the data in MongoDB. If yes, how can I do that? If not, what other files are needed? Thanks!
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It only takes a minute to sign up.
Sign up to join this communityI have collection-0-xxx.wt and index-0-xxx.wt files simply copied from another dbpath.
I am wondering if those files are enough to restore the data in MongoDB. If yes, how can I do that? If not, what other files are needed? Thanks!
As one other user wrote, that you need to have whole content of dbPath -directory copied. This is called snapshot copy. You can't copy just "some of" those files, copy must include all, and all of those files must be from the same moment of time. This is f.ex. the easiest way to create (fast) secondary to replica set, which primary have huge amount of data.
dbPath