# Percona Backup for MongoDB is not restoring the incremental/base backup

**URL:** <https://forums.percona.com/t/percona-backup-for-mongodb-is-not-restoring-the-incremental-base-backup/22185>\
**Category:** Percona Backup for MongoDB\
**Tags:** mongodb, pbm\
**Created:** [May 19, 2023, 2:52pm UTC](https://forums.percona.com/t/percona-backup-for-mongodb-is-not-restoring-the-incremental-base-backup/22185 "2023-05-19T14:52:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sai\_Teja\_Varma](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sai_teja_varma/32/8941_2.png) [@Sai\_Teja\_Varma](https://forums.percona.com/u/Sai_Teja_Varma)\
**Post date:** [May 19, 2023, 2:52pm UTC](https://forums.percona.com/t/percona-backup-for-mongodb-is-not-restoring-the-incremental-base-backup/22185/1 "2023-05-19T14:52:07Z")

</div>

Hi Team,

I am trying to backup/restore of a selective collection in incremental method.

The logical backup/restore seams to work fine.

when I trying to implement incremental, the backups are happening fine, but restore, it just show

````auto
- Restore on replicaset "rs0" in state: ```

trying the below commands for backup and restore
```pbm backup --base --ns="backup_test.full_backup"
pbm backup --type=incremental --base --ns="backup_test.full_backup"

pbm list
Backup snapshots:
  2023-05-18T14:05:17Z <logical, selective> [restore_to_time: 2023-05-18T14:05:26Z]
  2023-05-18T14:30:16Z <incremental, selective, base> [restore_to_time: 2023-05-18T14:30:24Z]
  2023-05-19T13:02:25Z <incremental, selective, base> [restore_to_time: 2023-05-19T13:02:33Z]
  2023-05-19T13:03:39Z <incremental, selective> [restore_to_time: 2023-05-19T13:04:20Z]

PITR <off>:
sh-4.2# pbm restore 2023-05-19T13:02:25Z --ns "backup_test.full_backup" ```

Can you please help me with this.
````

---

<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:** [May 29, 2023, 11:27am UTC](https://forums.percona.com/t/percona-backup-for-mongodb-is-not-restoring-the-incremental-base-backup/22185/2 "2023-05-29T11:27:25Z")

</div>

Hi, do you get no output on the pbm logs either? in that case please open a bug at [jira.percona.com](http://jira.percona.com) with this information

---

<div class="post-metadata">

**Author:** ![Dmytro\_Zghoba](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/dmytro_zghoba/32/4721_2.png) [@Dmytro\_Zghoba](https://forums.percona.com/u/Dmytro_Zghoba)\
**Post date:** [June 2, 2023, 6:11am UTC](https://forums.percona.com/t/percona-backup-for-mongodb-is-not-restoring-the-incremental-base-backup/22185/3 "2023-06-02T06:11:02Z")

</div>

hi @Sai_Teja_Varma ,

PBM does not support selective backup and restore for physical and incremental.  
Only logical:

- selective backup and restore all its db/colls.
- selective restore from a full backup
- “sub-selective”: selective restore from selective backup (like, restore `db1.collA` from `db1.*` backup)

Sorry for the delayed answer.

---

<div class="post-metadata">

**Author:** ![Sai\_Teja\_Varma](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sai_teja_varma/32/8941_2.png) [@Sai\_Teja\_Varma](https://forums.percona.com/u/Sai_Teja_Varma)\
**Post date:** [June 5, 2023, 9:45am UTC](https://forums.percona.com/t/percona-backup-for-mongodb-is-not-restoring-the-incremental-base-backup/22185/4 "2023-06-05T09:45:06Z")

</div>

Hi @Dmytro_Zghoba

Thank you for the reply. I am trying to backup using local only (backing up in the same instance as well as testing).

I am trying selective backup of Database/collections and restore of the same with incremental and direct are working fine.

Thank you

---

<div class="post-metadata">

**Author:** ![Sai\_Teja\_Varma](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sai_teja_varma/32/8941_2.png) [@Sai\_Teja\_Varma](https://forums.percona.com/u/Sai_Teja_Varma)\
**Post date:** [June 5, 2023, 9:46am UTC](https://forums.percona.com/t/percona-backup-for-mongodb-is-not-restoring-the-incremental-base-backup/22185/5 "2023-06-05T09:46:26Z")

</div>

Hi @Ivan_Groenewold  
Thank you for the reply. As Its incremental + selective backup, it is showing just empty reply.

Will raise a bug report as you suggested

Thank you
