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

**URL:** https://forums.percona.com/t/where-does-pbm-stores-pitr-incremental-backups-info-in-admin-database-in-mongo/10927
**Category:** Percona Backup for MongoDB
**Tags:** percona
**Created:** [June 18, 2021, 5:20am UTC](https://forums.percona.com/t/where-does-pbm-stores-pitr-incremental-backups-info-in-admin-database-in-mongo/10927 "2021-06-18T05:20:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Siva\_Sukumar\_Reddy](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/siva_sukumar_reddy/32/3255_2.png) [@Siva\_Sukumar\_Reddy](https://forums.percona.com/u/Siva_Sukumar_Reddy)
#### Post date: [June 18, 2021, 5:20am UTC](https://forums.percona.com/t/where-does-pbm-stores-pitr-incremental-backups-info-in-admin-database-in-mongo/10927/1 "2021-06-18T05:20:51Z")

</div>

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](https://www.percona.com/doc/percona-backup-mongodb/architecture.html#pbm-control-collections).  
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?

---

<div class="post-metadata">

### Author: ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)
#### Post date: [June 18, 2021, 1:09pm UTC](https://forums.percona.com/t/where-does-pbm-stores-pitr-incremental-backups-info-in-admin-database-in-mongo/10927/2 "2021-06-18T13:09:19Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Siva\_Sukumar\_Reddy](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/siva_sukumar_reddy/32/3255_2.png) [@Siva\_Sukumar\_Reddy](https://forums.percona.com/u/Siva_Sukumar_Reddy)
#### Post date: [June 18, 2021, 2:57pm UTC](https://forums.percona.com/t/where-does-pbm-stores-pitr-incremental-backups-info-in-admin-database-in-mongo/10927/3 "2021-06-18T14:57:23Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)
#### Post date: [June 22, 2021, 12:03pm UTC](https://forums.percona.com/t/where-does-pbm-stores-pitr-incremental-backups-info-in-admin-database-in-mongo/10927/4 "2021-06-22T12:03:46Z")

</div>

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.
