How to take backup based on ISODate or ObjectID using mongodump v4.2.2?

Can you clarify what you mean by “based on ISOdate or objectId”?

Do you mean you want to dump all the records in a collection that have some field greater than a particular ISODate or ObjectId?