Is there a way to determine to which specific snapshot does an oplog slice belongs to?

When I do pbm list if the PITR is enabled, I get the output for snapshot and oplog slice ranges.
Is there a way to determine which oplog slice range belongs to which backup from the output programmatically?
I’m working on a case where I should associate an oplog slice to a snapshot.

1 Like

Hi, the oplog slices don’t really “belong” to one backup. The oplog thread runs continuously. You need at least a base snapshot to restore, and if there are multiple snapshots PBM will chose the one closest to your desired restore time as the base and roll it forward for you.

1 Like