# Point in time recovery based on incremental backup

**URL:** <https://forums.percona.com/t/point-in-time-recovery-based-on-incremental-backup/27580>\
**Category:** Percona Backup for MongoDB\
**Tags:** percona\
**Created:** [January 4, 2024, 8:08am UTC](https://forums.percona.com/t/point-in-time-recovery-based-on-incremental-backup/27580 "2024-01-04T08:08:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iliterallyneedhelp](https://avatars.discourse-cdn.com/v4/letter/i/9d8465/32.png) [@Iliterallyneedhelp](https://forums.percona.com/u/Iliterallyneedhelp)\
**Post date:** [January 4, 2024, 8:08am UTC](https://forums.percona.com/t/point-in-time-recovery-based-on-incremental-backup/27580/1 "2024-01-04T08:08:39Z")

</div>

Hi,

As I’m reading the docs, I see it’s described how to setup Point in TIme Recovery based on physical and logical backups only. Is it possible to setup PITR to be working with incremental backups?

Doc that I mentioned before: [Point-in-time recovery - Percona Backup for MongoDB](https://docs.percona.com/percona-backup-mongodb/features/point-in-time-recovery.html)

---

<div class="post-metadata">

**Author:** ![anil.joshi](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/anil.joshi/32/13100_2.png) [@anil.joshi](https://forums.percona.com/u/anil.joshi)\
**Post date:** [January 5, 2024, 10:53am UTC](https://forums.percona.com/t/point-in-time-recovery-based-on-incremental-backup/27580/2 "2024-01-05T10:53:00Z")

</div>

@Iliterallyneedhelp

> Is it possible to setup PITR to be working with incremental backups?

Incremental backups also comprises of physical backup. An **incremental base backup** would be required in order to start the incremental backup chain as like full backup.

[https://docs.percona.com/percona-backup-mongodb/features/incremental-backup.html#incremental-physical-backups](https://docs.percona.com/percona-backup-mongodb/features/incremental-backup.html#incremental-physical-backups)

Yes, you can enable the **PITR** in the Physical Incremental process as well.

E.g,

**Enabing PITR:**

`pbm config --set pitr.enabled=true`

**Taking Incremental backups:**

`pbm backup --type incremental --base`

`pbm backup --type incremental`

`pbm list`

> Backup snapshots:  
> 2024-01-05T10:19:39Z \<incremental, base\> [restore\_to\_time: 2024-01-05T10:19:42Z]  
> 2024-01-05T10:20:51Z [restore\_to\_time: 2024-01-05T10:20:54Z]  
> 2024-01-05T10:21:53Z [restore\_to\_time: 2024-01-05T10:21:59Z]
> 
> PITR :  
> 2024-01-05T10:19:43Z - 2024-01-05T10:25:12Z

---

<div class="post-metadata">

**Author:** ![Iliterallyneedhelp](https://avatars.discourse-cdn.com/v4/letter/i/9d8465/32.png) [@Iliterallyneedhelp](https://forums.percona.com/u/Iliterallyneedhelp)\
**Post date:** [January 5, 2024, 2:12pm UTC](https://forums.percona.com/t/point-in-time-recovery-based-on-incremental-backup/27580/3 "2024-01-05T14:12:38Z")

</div>

Awesome, it’s all I needed to know. Thanks buddy
