Sample Header Ad - 728x90

How to validate a mongorestore

2 votes
0 answers
344 views
I have a script that creates a zip dump file using mongodump for all of my sibling databases in Mongo. I then transfer these to a different mongoDB instance(having the same sibling dbs) and use mongorestore to fill up the collections and their respective documents. The db version is v3.2.19 Does anybody know of a way or direct me to some resource that helps validating the two mongo processes (preferably programmatically)? I would like to say for certain that the number of documents/collections dumped were the number of documents/collections inserted using restore. Thanks again!
Asked by Chinmoy Sharma (21 rep)
Jun 13, 2018, 03:33 PM
Last activity: Jan 2, 2020, 10:19 PM