Where does pbm stores PITR incremental backups info in admin database in mongo?

When I do a pbm list with PITR turned on, I see a list of incremental backups under PITR <on>.
Are these incremental backups stored somewhere in admin database?
I see collection related to PITR with name pbmPITRChunks in the admin database. But it looks like it doesn’t contain exact info that’s displayed in pbm list output.
There should be one more table pbmPITRState as mentioned here Architecture — Percona Backup for MongoDB 1.8 Documentation.
But I don’t see that in the admin database.
I’m using pbm 1.4.1 version.
Is there a way to query the admin db directly and get the PITR backups that’s displayed in pbm list output?

1 Like

Hello, I don’t think the pbmPITRState collections is currently being used. All the info you need should be on the pbmPITRChunks collection. What do you perceive is missing exactly?

1 Like

I looked at pbmPITRChunks and realized that they’re not exactly what’s shown in the PITR output of pbm list.
I was looking got a way to get the incremental backup ranges directly by querying the admin database. Not like fetching the resultset and looping through the documents to find out the start and end range etc.

1 Like

I see what you mean. You will need to “do the math” yourself then, or you can parse the pbm list command output directly instead of the collection.

2 Likes