Hi Haris,
- IDs of documents which could not be dumped
Mongodump will dump all the documents up to the time when mongodump was executed. If you require a Point in Time Backup, you may consider using the —oplog option. However, mongodump won’t return the _ids of documents which could/couldn’t be dumped.
One way to verify your mongodump output is to restore this backup to other server and compare the _ids (preferrably using some script) to get the documents which got inserted after the mongodump run and hence couldn’t be backed up. This process assumes that there are no inserts/updates between the time mongodump was called and the verification process.
Regards
Ankur