How to use oplogs in MongoDB

Hey Friends

I have recently been uaing mongodb for a while nearly 1 week. I’am looking into the backup concepts in mongodb and now I have a doubt on how to perform incremental backups in mongodb. In search of that I have cam across many sites which explains that incremental backup in mongodb can be performed by " oplogs " but I tried it but it doesn’t work for me also I can’t troubleshoot the issue can anyone help me in this problem

I’m using mongodb v4.4.29 on ubuntu 20 (focal)

Thanks in advance

With Regards
Gousik Rao N

hello
MongoDB community does not support incremental backups
You can use MongoDB Enterprise OPS MANAGER or Atlas.
However, since the operation log is stored in oplog, incremental backup can be attempted using the oplog timestamp.

Thank you

You are using the parameter ‘–oplogReplay’ with mongodump. It should be used with mongorestore instead. Check the documentation at https://www.mongodb.com/docs/database-tools/mongodump/#std-option-mongodump.--oplog and https://www.mongodb.com/docs/database-tools/mongorestore/#std-option-mongorestore.--oplogReplay