Is lock required while taking dump of oplog collection using mongodump?

Hi,

I am taking dump of oplog collection using below command. Is locking the server before taking the dump necessary for consistency?

“/var/lib/mongodb-mms-automation/bin/mongodump” --port 27099 --host xxxxx --db local --collection oplog.rs --out “/dumplocation” --query ‘{“ts”:{"$gt":{"$timestamp": {“t”: 1611733648, “i”: 1}}}}’

When I am taking File system snapshot, I dont lock the server as mentioned in the MongoDB documentation, but for backup of oplog using mongodump, there is no recommendation in the MongoDB documentation. Please can you suggest?

Thanks,
Akshaya Srinivasan