[mongodb-user] How to find failed documents when dumping a collection
How to find failed documents when dumping a collection
Haris Osmanagic <
Mon, 18 Apr 2016 01:54:42 -0700 (PDT)
Here is the use case for my first question here:
I am removing historical data from a collection in MongoDB (3.2), but first
I need a backup of it. The choice has fallen, a simple combination of:
1. mongodump --db myDatabase --collection myCollection -q <my query>
2. db.myCollection.remove(<my query>)
So far so good. However, I must not remove any data which is not backed up.
So, I need one of the following:
1. IDs of documents which could not be dumped
2. IDs of document could be dumped
Is there anyway I can get this?
Thanks a lot for the great thing called MongoDB and thanks in advance for
You received this message because you are subscribed to the Google Groups "mongodb-user"
For other MongoDB technical support options, see:
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at
To view this discussion on the web visit
For more options, visit
for more updates.