# Large PITR chunk

**URL:** <https://forums.percona.com/t/large-pitr-chunk/12913>\
**Category:** Percona Backup for MongoDB\
**Created:** [November 9, 2021, 8:45am UTC](https://forums.percona.com/t/large-pitr-chunk/12913 "2021-11-09T08:45:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![redirect](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@redirect](https://forums.percona.com/u/redirect)\
**Post date:** [November 9, 2021, 8:45am UTC](https://forums.percona.com/t/large-pitr-chunk/12913/1 "2021-11-09T08:45:59Z")

</div>

Hello everyone! I’m trying to understand why I have several full database backups, but only 1 large PITR chunk, documentation from percona website contains a example listing

```auto
pbm list

  2021-08-04T13: 00: 58Z [complete: 2021-08-04T13: 01: 23]
  2021-08-05T13: 00: 47Z [complete: 2021-08-05T13: 01: 11]
  2021-08-06T08: 02: 44Z [complete: 2021-08-06T08: 03: 09]
  2021-08-06T08: 03: 43Z [complete: 2021-08-06T08: 04: 08]
  2021-08-06T08: 18: 17Z [complete: 2021-08-06T08: 18: 41]

PITR <off>:
  2021-08-04T13: 01: 24 - 2021-08-05T13: 00: 11
  2021-08-06T08: 03: 10 - 2021-08-06T08: 18: 29
  2021-08-06T08: 18: 42 - 2021-08-06T08: 33: 09

```

where full backup named 2021-08-04T13: 00: 58Z are use as a base backup for chunk 2021-08-04T13: 01: 24 - 2021-08-05T13: 00: 11 and backup 2021-08-06T08: 02: 44Z are use as a base backup for chunk 2021-08-06T08: 03: 10 - 2021-08-06T08: 18: 29 etc…

but in my case i have 3 full backups ( which executed once a week )

```auto
pbm status
Cluster:
prod-bishkek:
  - prod-bishkek/10.0.4.3:27017: pbm-agent v1.6.0 OK
  - prod-bishkek/10.0.5.12:27017: pbm-agent v1.6.0 OK
  - prod-bishkek/192.168.5.43::27017: pbm-agent v1.6.0 OK

PITR incremental backup:
========================
Status [ON]

Currently running:
==================
(none)

Backups:
FS /opt/mongodb-backup
  Snapshots:
    2021-11-06T18:00:01Z 101.63GB [complete: 2021-11-06T18:09:39]
    2021-11-02T09:15:20Z 66.98GB [complete: 2021-11-02T09:21:34]
    2021-10-25T09:56:48Z 7.67GB [complete: 2021-10-25T09:57:44]
  PITR chunks [114.59GB]:
    2021-10-25T09:57:45 - 2021-11-09T08:39:55

```

and why i get 1 large PITR chunk?  
i’ve set pitr.oplogSpanMin=30

---

<div class="post-metadata">

**Author:** ![redirect](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@redirect](https://forums.percona.com/u/redirect)\
**Post date:** [November 16, 2021, 6:17am UTC](https://forums.percona.com/t/large-pitr-chunk/12913/2 "2021-11-16T06:17:03Z")

</div>

any suggestions guys?

---

<div class="post-metadata">

**Author:** ![Nguy\_n\_Xuan\_H\_i](https://avatars.discourse-cdn.com/v4/letter/n/85f322/32.png) [@Nguy\_n\_Xuan\_H\_i](https://forums.percona.com/u/Nguy_n_Xuan_H_i)\
**Post date:** [November 16, 2021, 7:55am UTC](https://forums.percona.com/t/large-pitr-chunk/12913/3 "2021-11-16T07:55:19Z")

</div>

I was wondering the same thing. It’s not a big chunk, if you look at the backup file then you will see multiple chunks and you can delete individual chunk. It’s just shown like that when you list it.

---

<div class="post-metadata">

**Author:** ![redirect](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@redirect](https://forums.percona.com/u/redirect)\
**Post date:** [November 16, 2021, 10:28am UTC](https://forums.percona.com/t/large-pitr-chunk/12913/4 "2021-11-16T10:28:25Z")

</div>

Yeah, but i want to have list like in docs 😉

---

<div class="post-metadata">

**Author:** ![Julien\_Rasneur](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/julien_rasneur/32/6892_2.png) [@Julien\_Rasneur](https://forums.percona.com/u/Julien_Rasneur)\
**Post date:** [August 30, 2022, 9:44am UTC](https://forums.percona.com/t/large-pitr-chunk/12913/5 "2022-08-30T09:44:20Z")

</div>

Hello,  
I have the same problem. Have you find a solution ?

> # pbm list
> 
> Backup snapshots:  
> 2022-07-05T10:10:11Z [complete: 2022-07-05T10:17:45Z]  
> 2022-07-31T19:00:30Z [complete: 2022-07-31T19:15:27Z]  
> 2022-08-07T19:00:27Z [complete: 2022-08-07T19:14:25Z]  
> 2022-08-14T19:00:33Z [complete: 2022-08-14T19:16:01Z]  
> 2022-08-21T19:00:39Z [complete: 2022-08-21T19:13:57Z]  
> 2022-08-28T19:00:18Z [complete: 2022-08-28T19:15:28Z]
> 
> PITR :  
> 2022-07-05T10:17:46Z - 2022-08-30T09:05:29Z

Then i can’t delete old backup.  
I get the error message :

> # pbm delete-backup 2022-07-05T10:10:11Z
> 
> Are you sure you want delete backup(s)? [y/N] y  
> Waiting for delete to be done …Error: deleting: unable to delete: backup is a base for ‘2022-07-05T10:17:45 - 2022-08-30T09:15:32’

---

<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:** [September 9, 2022, 10:17am UTC](https://forums.percona.com/t/large-pitr-chunk/12913/6 "2022-09-09T10:17:15Z")

</div>

Hi @Julien_Rasneur

it’s a known issue. you can track the status of the fix here [[PBM-850] Add ability to delete older backups - Percona JIRA](https://jira.percona.com/browse/PBM-850)

for now, you can try to delete the PITR range first and then the backup.

```auto
$> pbm delete-pitr --older-then="2022-07-31T19:15:27"
$> pbm delete-backup "2022-07-05T10:10:11Z"

```

---

<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:** [September 9, 2022, 10:25am UTC](https://forums.percona.com/t/large-pitr-chunk/12913/7 "2022-09-09T10:25:31Z")

</div>

about the initial question raised here:

`pbm status` and `pbm list` commands show PITR time ranges that are continuous (without any gaps/missed oplog records). if there is more than one range, then there are gaps between them.

> and why i get 1 large PITR chunk?  
> i’ve set pitr.oplogSpanMin=30

the PITR time range is not a single file but many (one by one) smaller chunks/ranges. so there should be many chunks roughly 30mins each
