I wonder what is Diagnostic.data folder? Should I copy that too? or I
can simply ignore it? My Diagnostic.data folder size is around 300MB
that is bigger than my other database files.
As per MongoDB blog documentation here There is no available tool to read/view the index files or journal files for a
You can inspect the
diagnostic.data/metrics.* files using the
bsondump utility. The contents are outputs of the
db.serverStatus() command saved in a binary format.
The index files and journal files should not be viewed directly. Instead, it is recommended and best practice to view information relating to indexes, by running commands from the mongo shell to query the database. For example, to get a list of indexes for the test collection, run the following command:
The index files, journal files, WiredTiger files are binary files stored in binary format. These are only readable by the MongoDB database and is not human readable, thus it means we cannot sample/view these binary files directly.Also, let us know the signification of all .wt, .turtle, .bson files in the dbpath (data directory) and let us know how to read them.
When using MongoDB with the WiredTiger storage engine, there are different sets of files in the
MongoDB internal and lock files:
WiredTiger metadata files:
What about journal folder? Can I ignore it too?
To provide durability in the event of a failure, MongoDB uses write ahead logging to on-disk journal files.
Note: The log mentioned in this section refers to the WiredTiger write-ahead log (i.e. the journal) and not the MongoDB log file.