I am restoring a large mongo database (90 GB). I am using mongorestore, and it fails silently around 70..90% of the restoring process. Is there a way to skip the n first documents of the dump when launching mongorestore ?. I know there is a filter options where you can give a filter query, but it does not help.
If i try to restore once again the whole backup, it takes a lot of times, due to duplicate index error. I tried to restore the db once again, but it fails once again (due to a socket exception)
As mongorestore seems to process the bson dump sequentially, i was wondering if there is a way to say : " just skip the 1'234'567 first documents of the dump and restore the rest "
I have just one large collection. I have already break the dump in different parts, but it seems not enough. It would be really easier to tell mongorestore to skip the restored documents and go on.
Thanks