# PBM physical restore with PITR is not happening

**URL:** <https://forums.percona.com/t/pbm-physical-restore-with-pitr-is-not-happening/36524>\
**Category:** Percona Backup for MongoDB\
**Tags:** percona, pbm\
**Created:** [February 4, 2025, 3:16pm UTC](https://forums.percona.com/t/pbm-physical-restore-with-pitr-is-not-happening/36524 "2025-02-04T15:16:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sujithtee](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sujithtee/32/18989_2.png) [@sujithtee](https://forums.percona.com/u/sujithtee)\
**Post date:** [February 4, 2025, 3:17pm UTC](https://forums.percona.com/t/pbm-physical-restore-with-pitr-is-not-happening/36524/1 "2025-02-04T15:17:00Z")

</div>

Hi, I am testing pbm physical backup restore with pitr on a single node replicaset.  
The backup and the pitr looks fine while checking on the pbm list command.  
The restore command started without issues, and the copy files stage completed successfully,

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/c/0/c06c130f35eadec6033b87dad43f56892e0162b1.png)  
after replaying pitr oplog step the connection to the db is not happening, I understand that during physical restore DB will go up and down multiple times, and below are the logs from restore log for starting a temporary mongodb.  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/e/1/e1b6bfa8922329f4390a3d45ce36467ff973a669.jpeg)  
and finally getting this warning log indefinetely  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/optimized/3X/c/b/cbda32cf66360af0c5b0059f137bc4903b87dfa1_2_690x16.png)

Please let me know if something I am missing

The psmdb version is 6 and the pbm version is 2.8.0

---

<div class="post-metadata">

**Author:** ![Vinodh\_Krishnaswamy](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vinodh_krishnaswamy/32/46_2.png) [@Vinodh\_Krishnaswamy](https://forums.percona.com/u/Vinodh_Krishnaswamy)\
**Post date:** [February 4, 2025, 5:48pm UTC](https://forums.percona.com/t/pbm-physical-restore-with-pitr-is-not-happening/36524/2 "2025-02-04T17:48:43Z")

</div>

Hi Sujith,  
Hope you are doing good!

> [@](#):
>
> after replaying pitr oplog step the connection to the db is not happening

What is the status of the DB now? Is it up and running? Did you receive any error when connecting? Or was the connection hanging in the terminal? It would be useful if you could provide us with the full mongod log and the pbm agent log. I am interested to look at what happened at 19:42 in MongoDB.  
`journalctl -xe -u pbm-agent > pbm-agent.log`  
`ps -ef | grep -i mongo`

If you could login Mongodb, then you can try to provide us the pbm logs as follows:  
`pbm logs -sD -t0 > pbm.log`

Regards,  
Vinodh Guruji

---

<div class="post-metadata">

**Author:** ![sujithtee](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sujithtee/32/18989_2.png) [@sujithtee](https://forums.percona.com/u/sujithtee)\
**Post date:** [February 4, 2025, 6:02pm UTC](https://forums.percona.com/t/pbm-physical-restore-with-pitr-is-not-happening/36524/3 "2025-02-04T18:02:31Z")

</div>

Hi @Vinodh_Krishnaswamy, Thanks for the prompt reply, I was waiting for someone to respond.

So, after **replaying pitr oplog** line no actual PITR replay is happening was my original concern,  
Also regarding the mongod status, its running with the temporary config file/port, and I can see able to login without authentication. and the data available there is only from the full backup, not anything available from the oplog changes.  
attaching the pbm agent system logs,  
as the original mongodb is not running and the credentials is different pbm logs command hungs  
[pbm-agent.log](https://forums.percona.com/uploads/short-url/g98RmPWAPUX2vNROV7hIiJfhW6S.log) (236.9 KB)  
Additionally attaching restore log as well  
[pbm.restore.log](https://forums.percona.com/uploads/short-url/dUfHC3VwlFBzNZaMUuwHvRu6GW2.log) (302.4 KB)

just in case if you need my original restore command  
`pbm restore --time 2025-02-04T11:15:00`  
And the pbm list output

```auto
Backup snapshots:
  2025-01-30T04:54:30Z <physical> [restore_to_time: 2025-01-30T04:54:32Z]

PITR <off>:
  2025-01-30T04:54:33Z - 2025-02-04T11:18:24Z

```

Note: I re-ran the restore with pbm 2.6.0 and the attached log is also from same version, hence you would not able to see the same timeframes from log as same as my first message.
