I am using mongodump(version 2.4.14) to create a db backup that I restore on another system using mongorestore(version 2.4.14) but all the records are not being dumped and restored in the target mongo(2.4.14) instance.
I have tried:
- Restoring the db to two separate instances of mongo and the problem persists on both.
- Mongoexport with queries - Mongoexport document export count and db.collection.count does not match.
While trying to debug this, I came across this link in which others came across the same problem but no solution for the problem is mentioned.
I am looking for a any help in regards to finding out what the problem might be, how can I debug this further.
Update - Mongoexport/import a particular query response and importing it to a freshly created database works fine. The issue arises only when importing to existing db.