# Unable to restore the backup from any of the backup files using PBM agent!

**URL:** <https://forums.percona.com/t/unable-to-restore-the-backup-from-any-of-the-backup-files-using-pbm-agent/37662>\
**Category:** Percona Backup for MongoDB\
**Tags:** percona\
**Created:** [April 18, 2025, 9:37am UTC](https://forums.percona.com/t/unable-to-restore-the-backup-from-any-of-the-backup-files-using-pbm-agent/37662 "2025-04-18T09:37:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkatesh.devireddy](https://avatars.discourse-cdn.com/v4/letter/v/d26b3c/32.png) [@venkatesh.devireddy](https://forums.percona.com/u/venkatesh.devireddy)\
**Post date:** [April 18, 2025, 9:37am UTC](https://forums.percona.com/t/unable-to-restore-the-backup-from-any-of-the-backup-files-using-pbm-agent/37662/1 "2025-04-18T09:37:41Z")

</div>

I had a three node percona mongodb replica setup,unfortunately, I got hacked because of silly reasons but I have data backups just before the hack as this.

# "pbm status Cluster:

rs0:

- web1.\*\*\*\*\*\*\*\*.com:27017 [P]: pbm-agent [v2.9.1] OK
- web2.\*\*\*\*\*\*\*.com:27017 [S]: pbm-agent [v2.9.1] OK

# PITR incremental backup:

Status [OFF]

# Currently running:

(none)

# Backups:

FS /data/elev8-backups  
Snapshots:  
2025-04-16T19:17:06Z 458.77MB [restore\_to\_time: 2025-04-16T19:17:11Z]  
2025-04-16T19:12:14Z 86.41MB [restore\_to\_time: 2025-04-16T19:12:20Z]  
2025-04-16T19:09:48Z 86.36MB [restore\_to\_time: 2025-04-16T19:09:53Z]  
2025-04-16T19:07:46Z 93.53MB [restore\_to\_time: 2025-04-16T19:07:51Z]  
2025-04-16T18:30:01Z 126.62MB [restore\_to\_time: 2025-04-16T18:30:06Z]  
2025-04-15T18:30:02Z 175.23MB [restore\_to\_time: 2025-04-15T18:30:10Z]  
2025-04-14T18:30:02Z 186.80MB [restore\_to\_time: 2025-04-14T18:30:07Z]  
2025-04-13T18:30:01Z 177.35MB [restore\_to\_time: 2025-04-13T18:30:07Z]  
2025-04-12T18:30:01Z 172.13MB [restore\_to\_time: 2025-04-12T18:30:07Z]  
2025-04-11T18:30:02Z 216.22MB [restore\_to\_time: 2025-04-11T18:30:07Z]  
2025-04-10T18:30:02Z 152.84MB [restore\_to\_time: 2025-04-10T18:30:07Z]  
2025-04-09T18:30:01Z 132.58MB [restore\_to\_time: 2025-04-09T18:30:07Z]  
2025-04-08T18:30:01Z 124.61MB [restore\_to\_time: 2025-04-08T18:30:07Z]  
2025-04-07T18:30:02Z 103.63MB [restore\_to\_time: 2025-04-07T18:30:07Z]  
2025-04-06T18:30:01Z 99.59MB [restore\_to\_time: 2025-04-06T18:30:06Z]  
2025-04-05T18:30:02Z 111.82MB [restore\_to\_time: 2025-04-05T18:30:08Z]  
2025-04-04T18:30:01Z 111.23MB [restore\_to\_time: 2025-04-04T18:30:07Z]  
2025-04-03T18:30:01Z 110.32MB [restore\_to\_time: 2025-04-03T18:30:06Z]  
2025-04-02T18:30:01Z 109.35MB [restore\_to\_time: 2025-04-02T18:30:07Z]  
2025-04-01T18:30:02Z 83.87MB [restore\_to\_time: 2025-04-01T18:30:07Z]  
2025-03-31T18:30:01Z 79.59MB [restore\_to\_time: 2025-03-31T18:30:06Z]  
2025-03-30T18:30:02Z 78.99MB [restore\_to\_time: 2025-03-30T18:30:07Z]  
2025-03-29T18:30:01Z 77.72MB [restore\_to\_time: 2025-03-29T18:30:07Z]  
2025-03-28T18:30:01Z 76.86MB [restore\_to\_time: 2025-03-28T18:30:07Z]  
2025-03-27T18:30:01Z 76.06MB [restore\_to\_time: 2025-03-27T18:30:07Z]  
2025-03-26T18:30:02Z 75.49MB [restore\_to\_time: 2025-03-26T18:30:08Z]  
2025-03-25T18:30:01Z 74.00MB [restore\_to\_time: 2025-03-25T18:30:07Z]  
2025-03-24T18:30:02Z 86.05MB [restore\_to\_time: 2025-03-24T18:30:07Z]  
2025-03-23T18:51:51Z 117.58MB [restore\_to\_time: 2025-03-23T18:51:57Z]  
2025-03-17T18:30:01Z 122.92MB [restore\_to\_time: 2025-03-17T18:30:06Z]  
2025-03-16T18:30:01Z 121.52MB [restore\_to\_time: 2025-03-16T18:30:07Z]  
2025-03-15T18:30:02Z 108.17MB [restore\_to\_time: 2025-03-15T18:30:06Z]  
2025-03-14T18:30:01Z 107.63MB [restore\_to\_time: 2025-03-14T18:30:07Z]  
2025-03-13T18:30:01Z 115.16MB [restore\_to\_time: 2025-03-13T18:30:08Z]  
2025-03-12T18:30:01Z 187.29MB [restore\_to\_time: 2025-03-12T18:30:07Z]  
2025-03-11T18:30:01Z 159.38MB [restore\_to\_time: 2025-03-11T18:30:07Z]  
2025-03-10T18:30:01Z 143.22MB [restore\_to\_time: 2025-03-10T18:30:07Z]  
2025-03-09T18:30:01Z 127.41MB [restore\_to\_time: 2025-03-09T18:30:07Z]  
2025-03-08T18:30:01Z 123.95MB [restore\_to\_time: 2025-03-08T18:30:07Z]  
2025-03-07T18:30:01Z 121.80MB [restore\_to\_time: 2025-03-07T18:30:08Z]  
2025-03-06T18:30:01Z 119.10MB [restore\_to\_time: 2025-03-06T18:30:06Z]  
2025-03-05T18:30:01Z 106.64MB [restore\_to\_time: 2025-03-05T18:30:07Z]  
2025-03-04T18:30:01Z 87.26MB [restore\_to\_time: 2025-03-04T18:30:07Z]  
2025-03-03T18:30:01Z 98.12MB [restore\_to\_time: 2025-03-03T18:30:06Z]  
2025-03-02T18:30:01Z 98.39MB [restore\_to\_time: 2025-03-02T18:30:06Z]  
2025-03-01T18:30:01Z 94.38MB [restore\_to\_time: 2025-03-01T18:30:07Z]  
2025-02-28T18:30:01Z 89.72MB [restore\_to\_time: 2025-02-28T18:30:07Z]  
2025-02-27T18:30:01Z 90.74MB [restore\_to\_time: 2025-02-27T18:30:06Z]  
2025-02-26T18:30:02Z 96.89MB [restore\_to\_time: 2025-02-26T18:30:08Z]  
2025-02-25T18:30:01Z 94.25MB [restore\_to\_time: 2025-02-25T18:30:06Z]  
2025-02-24T18:30:01Z 91.64MB [restore\_to\_time: 2025-02-24T18:30:07Z]  
2025-02-23T18:30:01Z 89.31MB [restore\_to\_time: 2025-02-23T18:30:06Z]  
2025-02-22T18:30:01Z 86.48MB [restore\_to\_time: 2025-02-22T18:30:06Z]  
2025-02-21T18:30:01Z 96.81MB [restore\_to\_time: 2025-02-21T18:30:07Z]  
2025-02-20T18:30:01Z 94.32MB [restore\_to\_time: 2025-02-20T18:30:06Z]  
2025-02-19T18:30:01Z 60.37MB [restore\_to\_time: 2025-02-19T18:30:07Z]  
2025-02-18T18:30:01Z 74.10MB [restore\_to\_time: 2025-02-18T18:30:08Z]  
2025-02-17T18:30:02Z 99.80MB [restore\_to\_time: 2025-02-17T18:30:07Z]  
2025-02-16T18:30:01Z 110.31MB [restore\_to\_time: 2025-02-16T18:30:06Z]  
2025-02-15T18:30:01Z 107.81MB [restore\_to\_time: 2025-02-15T18:30:07Z]  
2025-02-14T18:30:02Z 105.38MB [restore\_to\_time: 2025-02-14T18:30:07Z]  
2025-02-13T18:30:02Z 116.13MB [restore\_to\_time: 2025-02-13T18:30:07Z]  
2025-02-12T18:30:02Z 99.88MB [restore\_to\_time: 2025-02-12T18:30:07Z]  
2025-02-11T18:30:01Z 110.60MB [restore\_to\_time: 2025-02-11T18:30:06Z]  
2025-02-10T18:30:01Z 108.16MB [restore\_to\_time: 2025-02-10T18:30:06Z]  
2025-02-09T18:30:01Z 105.26MB [restore\_to\_time: 2025-02-09T18:30:07Z]  
2025-02-08T18:30:01Z 102.67MB [restore\_to\_time: 2025-02-08T18:30:06Z]  
2025-02-07T18:30:02Z 100.22MB [restore\_to\_time: 2025-02-07T18:30:07Z]  
2025-02-06T18:30:02Z 113.87MB [restore\_to\_time: 2025-02-06T18:30:07Z]  
2025-02-05T18:30:01Z 111.29MB [restore\_to\_time: 2025-02-05T18:30:06Z]  
2025-02-04T18:30:02Z 108.83MB [restore\_to\_time: 2025-02-04T18:30:08Z]  
2025-02-03T18:30:02Z 103.31MB [restore\_to\_time: 2025-02-03T18:30:07Z]  
2025-02-02T18:30:01Z 99.90MB [restore\_to\_time: 2025-02-02T18:30:06Z]  
2025-02-01T18:30:01Z 113.32MB [restore\_to\_time: 2025-02-01T18:30:06Z]  
2025-01-31T18:30:01Z 106.33MB [restore\_to\_time: 2025-01-31T18:30:07Z]  
2025-01-30T18:30:01Z 123.25MB [restore\_to\_time: 2025-01-30T18:30:07Z]  
2025-01-29T18:30:01Z 134.20MB [restore\_to\_time: 2025-01-29T18:30:07Z]  
2025-01-28T18:30:01Z 143.11MB [restore\_to\_time: 2025-01-28T18:30:06Z]  
2025-01-27T18:30:01Z 135.99MB [restore\_to\_time: 2025-01-27T18:30:06Z]  
2025-01-26T18:30:01Z 131.81MB [restore\_to\_time: 2025-01-26T18:30:07Z]  
2025-01-25T18:30:01Z 141.22MB [restore\_to\_time: 2025-01-25T18:30:06Z]  
2025-01-24T18:30:01Z 301.32MB [restore\_to\_time: 2025-01-24T18:30:07Z]  
2025-01-23T18:30:01Z 215.97MB [restore\_to\_time: 2025-01-23T18:30:06Z]  
2025-01-22T18:30:01Z 212.01MB [restore\_to\_time: 2025-01-22T18:30:07Z]  
2025-01-21T18:30:01Z 224.72MB [restore\_to\_time: 2025-01-21T18:30:07Z]  
2025-01-20T18:30:01Z 220.28MB [restore\_to\_time: 2025-01-20T18:30:06Z]  
2025-01-19T18:30:01Z 229.42MB [restore\_to\_time: 2025-01-19T18:30:07Z]  
2025-01-18T18:30:02Z 208.37MB [restore\_to\_time: 2025-01-18T18:30:07Z]  
2025-01-17T18:30:01Z 204.65MB [restore\_to\_time: 2025-01-17T18:30:06Z]  
2025-01-16T18:30:01Z 213.98MB [restore\_to\_time: 2025-01-16T18:30:07Z]  
2025-01-15T18:30:01Z 212.13MB [restore\_to\_time: 2025-01-15T18:30:06Z]  
2025-01-14T18:30:01Z 204.91MB [restore\_to\_time: 2025-01-14T18:30:07Z]  
2025-01-13T18:30:01Z 214.53MB [restore\_to\_time: 2025-01-13T18:30:06Z]  
2025-01-12T18:30:01Z 210.01MB [restore\_to\_time: 2025-01-12T18:30:06Z]  
2025-01-11T18:30:01Z 205.64MB [restore\_to\_time: 2025-01-11T18:30:06Z]  
2025-01-10T18:30:02Z 201.82MB [restore\_to\_time: 2025-01-10T18:30:07Z]  
2025-01-09T18:30:02Z 197.08MB [restore\_to\_time: 2025-01-09T18:30:07Z]  
2025-01-08T18:30:02Z 206.64MB [restore\_to\_time: 2025-01-08T18:30:07Z]  
2025-01-07T18:30:01Z 202.31MB [restore\_to\_time: 2025-01-07T18:30:06Z]  
2025-01-06T18:30:02Z 185.06MB [restore\_to\_time: 2025-01-06T18:30:07Z]  
2025-01-05T18:30:02Z 197.26MB [restore\_to\_time: 2025-01-05T18:30:07Z]  
2025-01-04T18:30:01Z 193.08MB [restore\_to\_time: 2025-01-04T18:30:07Z]  
2025-01-03T18:30:01Z 185.70MB [restore\_to\_time: 2025-01-03T18:30:06Z]  
2025-01-02T18:30:01Z 195.86MB [restore\_to\_time: 2025-01-02T18:30:06Z]  
2025-01-01T18:30:01Z 192.46MB [restore\_to\_time: 2025-01-01T18:30:05Z]  
2024-12-31T18:30:01Z 186.82MB [restore\_to\_time: 2024-12-31T18:30:06Z]  
2024-12-30T18:30:01Z 169.36MB [restore\_to\_time: 2024-12-30T18:30:06Z]  
2024-12-29T18:30:01Z 181.94MB [restore\_to\_time: 2024-12-29T18:30:06Z]  
2024-12-28T18:30:01Z 173.18MB [restore\_to\_time: 2024-12-28T18:30:07Z]  
2024-12-27T18:30:01Z 172.61MB [restore\_to\_time: 2024-12-27T18:30:06Z]  
2024-12-26T18:30:01Z 137.28MB [restore\_to\_time: 2024-12-26T18:30:06Z]  
2024-12-25T18:30:01Z 134.69MB [restore\_to\_time: 2024-12-25T18:30:07Z]  
2024-12-24T18:30:01Z 162.20MB [restore\_to\_time: 2024-12-24T18:30:07Z]  
2024-12-23T18:30:01Z 112.01MB [restore\_to\_time: 2024-12-23T18:30:06Z]  
2024-12-23T05:55:54Z 171.85MB [restore\_to\_time: 2024-12-23T05:55:59Z]  
2024-12-18T18:30:01Z 169.90MB [restore\_to\_time: 2024-12-18T18:30:06Z]  
2024-12-17T18:30:01Z 167.44MB [restore\_to\_time: 2024-12-17T18:30:06Z]  
2024-12-16T18:30:01Z 176.12MB [restore\_to\_time: 2024-12-16T18:30:06Z]  
2024-12-15T18:30:01Z 169.32MB [restore\_to\_time: 2024-12-15T18:30:06Z]  
2024-12-14T18:30:01Z 167.63MB [restore\_to\_time: 2024-12-14T18:30:07Z]  
2024-12-13T18:30:01Z 164.17MB [restore\_to\_time: 2024-12-13T18:30:06Z]  
2024-12-12T18:30:01Z 161.72MB [restore\_to\_time: 2024-12-12T18:30:06Z]  
2024-12-11T18:30:01Z 190.03MB [restore\_to\_time: 2024-12-11T18:30:06Z]  
2024-11-25T20:24:26Z 158.89KB [restore\_to\_time: 2024-11-25T20:24:31Z]  
2024-11-25T20:23:56Z 1.48MB \<incremental, base\> [restore\_to\_time: 2024-11-25T20:24:02Z]  
2024-11-25T20:22:58Z 2.24MB [restore\_to\_time: 2024-11-25T20:23:02Z]"

These backups are made using a primary node( that means backup exists only in primary node, later copied to secondary nodes).  
I had to remove primary node and make one of the secondary node as primary, now the entire setup has become two node replica set.  
When I was trying to restore the data from primary node, I got this error

[root@web1 ~]# pbm restore 2025-04-16T19:17:06Z --wait  
Starting restore 2025-04-18T09:22:05.983189955Z from ‘2025-04-16T19:17:06Z’…Error: no confirmation that restore has successfully started. Replsets status:

- Restore on replicaset “rs0” in state:

and pbm agent status shows this

– Logs begin at Wed 2025-03-26 17:01:09 IST. –  
Apr 18 14:51:21 web2.**.com pbm-agent[3819805]: 2025-04-18T14:51:21.000+0530 I conn level ReadConcern: majority; WriteConcern: majority  
Apr 18 14:51:21 web2.**.com pbm-agent[3819805]: 2025-04-18T14:51:21.000+0530 I listening for the commands  
Apr 18 14:52:06 web2._**.com pbm-agent[3819805]: 2025-04-18T14:52:06.000+0530 I got command restore [name: 2025-04-18T09:22:05.983189955Z, snapshot: 2025-04-16T19:17:06Z] \<ts: 1744968125\>, opid: 680219bd92058bc2d20acffa  
Apr 18 14:52:06 web2.**__.com pbm-agent[3819805]: 2025-04-18T14:52:06.000+0530 I got epoch {1744968126 7}  
Apr 18 14:52:06 web2._**.com pbm-agent[3819805]: 2025-04-18T14:52:06.000+0530 I [restore/2025-04-18T09:22:05.983189955Z] backup: 2025-04-16T19:17:06Z  
Apr 18 14:52:06 web2. ****.com pbm-agent[3819805]: 2025-04-18T14:52:06.000+0530 I [restore/2025-04-18T09:22:05.983189955Z] recovery started  
Apr 18 14:52:06 web2. ****.com pbm-agent[3819805]: 2025-04-18T14:52:06.000+0530 D [restore/2025-04-18T09:22:05.983189955Z] port: 28089  
Apr 18 14:52:06 web2.**_.com pbm-agent[3819805]: 2025-04-18T14:52:06.000+0530 D [restore/2025-04-18T09:22:05.983189955Z] mongod binary: mongod, version: v7.0.16-10  
Apr 18 14:52:07 web2._**.com pbm-agent[3819805]: 2025-04-18T14:52:06.000+0530 I [restore/2025-04-18T09:22:05.983189955Z] moving to state starting  
Apr 18 14:52:07 web2.**\*.com pbm-agent[3819805]: 2025-04-18T14:52:07.000+0530 I [restore/2025-04-18T09:22:05.983189955Z] waiting for cluster

and this

– Logs begin at Mon 2025-03-31 15:29:13 IST. –  
Apr 18 14:52:06 web1.**.com pbm-agent[1424782]: 2025-04-18T14:52:06.000+0530 I got epoch {1744967585 26}  
Apr 18 14:52:06 web1.**_.com pbm-agent[1424782]: 2025-04-18T14:52:06.000+0530 I [restore/2025-04-18T09:22:05.983189955Z] oplog slicer disabled  
Apr 18 14:52:06 web1._**.com pbm-agent[1424782]: 2025-04-18T14:52:06.000+0530 I [restore/2025-04-18T09:22:05.983189955Z] backup: 2025-04-16T19:17:06Z  
Apr 18 14:52:06 web1.**_.com pbm-agent[1424782]: 2025-04-18T14:52:06.000+0530 I [restore/2025-04-18T09:22:05.983189955Z] recovery started  
Apr 18 14:52:06 web1.**.com pbm-agent[1424782]: 2025-04-18T14:52:06.000+0530 D [restore/2025-04-18T09:22:05.983189955Z] port: 27089  
Apr 18 14:52:06 web1.**_.com pbm-agent[1424782]: 2025-04-18T14:52:06.000+0530 D [restore/2025-04-18T09:22:05.983189955Z] mongod binary: mongod, version: v7.0.16-10  
Apr 18 14:52:06 web1._**.com pbm-agent[1424782]: 2025-04-18T14:52:06.000+0530 I [restore/2025-04-18T09:22:05.983189955Z] moving to state starting  
Apr 18 14:52:06 web1.**.com pbm-agent[1424782]: 2025-04-18T14:52:06.000+0530 I [restore/2025-04-18T09:22:05.983189955Z] waiting for `starting` status in rs map[.pbm.restore/2025-04-18T09:22:05.983189955Z/rs.rs0/node.web1._**.com:27017:{} .pbm.restore/2025-04-18T09:22:05.983189955Z/rs.rs0/node.web2.**_.com:27017:{}]  
Apr 18 14:56:11 web1.\*\*\*\*.com pbm-agent[1424782]: 2025-04-18T14:56:11.000+0530 E [restore/2025-04-18T09:22:05.983189955Z] restore: move to running state: wait for nodes in rs: check heartbeat in .pbm.restore/2025-04-18T09:22:05.983189955Z/rs.rs0/node.web2._\*\*\*\*.com:27017.hb: stuck, last beat ts: 1744968126  
Apr 18 14:56:11 web1.\*\*\*\*\*\*\*.com pbm-agent[1424782]: 2025-04-18T14:56:11.000+0530 D [restore/2025-04-18T09:22:05.983189955Z] hearbeats stopped

and pbm list as below

[root@web1 ~]# pbm list  
Backup snapshots:  
2024-11-25T20:22:58Z [restore\_to\_time: 2024-11-25T20:23:02Z]  
2024-11-25T20:23:56Z \<incremental, base\> [restore\_to\_time: 2024-11-25T20:24:02Z]  
2024-11-25T20:24:26Z [restore\_to\_time: 2024-11-25T20:24:31Z]  
2024-12-11T18:30:01Z [restore\_to\_time: 2024-12-11T18:30:06Z]  
2024-12-12T18:30:01Z [restore\_to\_time: 2024-12-12T18:30:06Z]  
2024-12-13T18:30:01Z [restore\_to\_time: 2024-12-13T18:30:06Z]  
2024-12-14T18:30:01Z [restore\_to\_time: 2024-12-14T18:30:07Z]  
2024-12-15T18:30:01Z [restore\_to\_time: 2024-12-15T18:30:06Z]  
2024-12-16T18:30:01Z [restore\_to\_time: 2024-12-16T18:30:06Z]  
2024-12-17T18:30:01Z [restore\_to\_time: 2024-12-17T18:30:06Z]  
2024-12-18T18:30:01Z [restore\_to\_time: 2024-12-18T18:30:06Z]  
2024-12-23T05:55:54Z [restore\_to\_time: 2024-12-23T05:55:59Z]  
2024-12-23T18:30:01Z [restore\_to\_time: 2024-12-23T18:30:06Z]  
2024-12-24T18:30:01Z [restore\_to\_time: 2024-12-24T18:30:07Z]  
2024-12-25T18:30:01Z [restore\_to\_time: 2024-12-25T18:30:07Z]  
2024-12-26T18:30:01Z [restore\_to\_time: 2024-12-26T18:30:06Z]  
2024-12-27T18:30:01Z [restore\_to\_time: 2024-12-27T18:30:06Z]  
2024-12-28T18:30:01Z [restore\_to\_time: 2024-12-28T18:30:07Z]  
2024-12-29T18:30:01Z [restore\_to\_time: 2024-12-29T18:30:06Z]  
2024-12-30T18:30:01Z [restore\_to\_time: 2024-12-30T18:30:06Z]  
2024-12-31T18:30:01Z [restore\_to\_time: 2024-12-31T18:30:06Z]  
2025-01-01T18:30:01Z [restore\_to\_time: 2025-01-01T18:30:05Z]  
2025-01-02T18:30:01Z [restore\_to\_time: 2025-01-02T18:30:06Z]  
2025-01-03T18:30:01Z [restore\_to\_time: 2025-01-03T18:30:06Z]  
2025-01-04T18:30:01Z [restore\_to\_time: 2025-01-04T18:30:07Z]  
2025-01-05T18:30:02Z [restore\_to\_time: 2025-01-05T18:30:07Z]  
2025-01-06T18:30:02Z [restore\_to\_time: 2025-01-06T18:30:07Z]  
2025-01-07T18:30:01Z [restore\_to\_time: 2025-01-07T18:30:06Z]  
2025-01-08T18:30:02Z [restore\_to\_time: 2025-01-08T18:30:07Z]  
2025-01-09T18:30:02Z [restore\_to\_time: 2025-01-09T18:30:07Z]  
2025-01-10T18:30:02Z [restore\_to\_time: 2025-01-10T18:30:07Z]  
2025-01-11T18:30:01Z [restore\_to\_time: 2025-01-11T18:30:06Z]  
2025-01-12T18:30:01Z [restore\_to\_time: 2025-01-12T18:30:06Z]  
2025-01-13T18:30:01Z [restore\_to\_time: 2025-01-13T18:30:06Z]  
2025-01-14T18:30:01Z [restore\_to\_time: 2025-01-14T18:30:07Z]  
2025-01-15T18:30:01Z [restore\_to\_time: 2025-01-15T18:30:06Z]  
2025-01-16T18:30:01Z [restore\_to\_time: 2025-01-16T18:30:07Z]  
2025-01-17T18:30:01Z [restore\_to\_time: 2025-01-17T18:30:06Z]  
2025-01-18T18:30:02Z [restore\_to\_time: 2025-01-18T18:30:07Z]  
2025-01-19T18:30:01Z [restore\_to\_time: 2025-01-19T18:30:07Z]  
2025-01-20T18:30:01Z [restore\_to\_time: 2025-01-20T18:30:06Z]  
2025-01-21T18:30:01Z [restore\_to\_time: 2025-01-21T18:30:07Z]  
2025-01-22T18:30:01Z [restore\_to\_time: 2025-01-22T18:30:07Z]  
2025-01-23T18:30:01Z [restore\_to\_time: 2025-01-23T18:30:06Z]  
2025-01-24T18:30:01Z [restore\_to\_time: 2025-01-24T18:30:07Z]  
2025-01-25T18:30:01Z [restore\_to\_time: 2025-01-25T18:30:06Z]  
2025-01-26T18:30:01Z [restore\_to\_time: 2025-01-26T18:30:07Z]  
2025-01-27T18:30:01Z [restore\_to\_time: 2025-01-27T18:30:06Z]  
2025-01-28T18:30:01Z [restore\_to\_time: 2025-01-28T18:30:06Z]  
2025-01-29T18:30:01Z [restore\_to\_time: 2025-01-29T18:30:07Z]  
2025-01-30T18:30:01Z [restore\_to\_time: 2025-01-30T18:30:07Z]  
2025-01-31T18:30:01Z [restore\_to\_time: 2025-01-31T18:30:07Z]  
2025-02-01T18:30:01Z [restore\_to\_time: 2025-02-01T18:30:06Z]  
2025-02-02T18:30:01Z [restore\_to\_time: 2025-02-02T18:30:06Z]  
2025-02-03T18:30:02Z [restore\_to\_time: 2025-02-03T18:30:07Z]  
2025-02-04T18:30:02Z [restore\_to\_time: 2025-02-04T18:30:08Z]  
2025-02-05T18:30:01Z [restore\_to\_time: 2025-02-05T18:30:06Z]  
2025-02-06T18:30:02Z [restore\_to\_time: 2025-02-06T18:30:07Z]  
2025-02-07T18:30:02Z [restore\_to\_time: 2025-02-07T18:30:07Z]  
2025-02-08T18:30:01Z [restore\_to\_time: 2025-02-08T18:30:06Z]  
2025-02-09T18:30:01Z [restore\_to\_time: 2025-02-09T18:30:07Z]  
2025-02-10T18:30:01Z [restore\_to\_time: 2025-02-10T18:30:06Z]  
2025-02-11T18:30:01Z [restore\_to\_time: 2025-02-11T18:30:06Z]  
2025-02-12T18:30:02Z [restore\_to\_time: 2025-02-12T18:30:07Z]  
2025-02-13T18:30:02Z [restore\_to\_time: 2025-02-13T18:30:07Z]  
2025-02-14T18:30:02Z [restore\_to\_time: 2025-02-14T18:30:07Z]  
2025-02-15T18:30:01Z [restore\_to\_time: 2025-02-15T18:30:07Z]  
2025-02-16T18:30:01Z [restore\_to\_time: 2025-02-16T18:30:06Z]  
2025-02-17T18:30:02Z [restore\_to\_time: 2025-02-17T18:30:07Z]  
2025-02-18T18:30:01Z [restore\_to\_time: 2025-02-18T18:30:08Z]  
2025-02-19T18:30:01Z [restore\_to\_time: 2025-02-19T18:30:07Z]  
2025-02-20T18:30:01Z [restore\_to\_time: 2025-02-20T18:30:06Z]  
2025-02-21T18:30:01Z [restore\_to\_time: 2025-02-21T18:30:07Z]  
2025-02-22T18:30:01Z [restore\_to\_time: 2025-02-22T18:30:06Z]  
2025-02-23T18:30:01Z [restore\_to\_time: 2025-02-23T18:30:06Z]  
2025-02-24T18:30:01Z [restore\_to\_time: 2025-02-24T18:30:07Z]  
2025-02-25T18:30:01Z [restore\_to\_time: 2025-02-25T18:30:06Z]  
2025-02-26T18:30:02Z [restore\_to\_time: 2025-02-26T18:30:08Z]  
2025-02-27T18:30:01Z [restore\_to\_time: 2025-02-27T18:30:06Z]  
2025-02-28T18:30:01Z [restore\_to\_time: 2025-02-28T18:30:07Z]  
2025-03-01T18:30:01Z [restore\_to\_time: 2025-03-01T18:30:07Z]  
2025-03-02T18:30:01Z [restore\_to\_time: 2025-03-02T18:30:06Z]  
2025-03-03T18:30:01Z [restore\_to\_time: 2025-03-03T18:30:06Z]  
2025-03-04T18:30:01Z [restore\_to\_time: 2025-03-04T18:30:07Z]  
2025-03-05T18:30:01Z [restore\_to\_time: 2025-03-05T18:30:07Z]  
2025-03-06T18:30:01Z [restore\_to\_time: 2025-03-06T18:30:06Z]  
2025-03-07T18:30:01Z [restore\_to\_time: 2025-03-07T18:30:08Z]  
2025-03-08T18:30:01Z [restore\_to\_time: 2025-03-08T18:30:07Z]  
2025-03-09T18:30:01Z [restore\_to\_time: 2025-03-09T18:30:07Z]  
2025-03-10T18:30:01Z [restore\_to\_time: 2025-03-10T18:30:07Z]  
2025-03-11T18:30:01Z [restore\_to\_time: 2025-03-11T18:30:07Z]  
2025-03-12T18:30:01Z [restore\_to\_time: 2025-03-12T18:30:07Z]  
2025-03-13T18:30:01Z [restore\_to\_time: 2025-03-13T18:30:08Z]  
2025-03-14T18:30:01Z [restore\_to\_time: 2025-03-14T18:30:07Z]  
2025-03-15T18:30:02Z [restore\_to\_time: 2025-03-15T18:30:06Z]  
2025-03-16T18:30:01Z [restore\_to\_time: 2025-03-16T18:30:07Z]  
2025-03-17T18:30:01Z [restore\_to\_time: 2025-03-17T18:30:06Z]  
2025-03-23T18:51:51Z [restore\_to\_time: 2025-03-23T18:51:57Z]  
2025-03-24T18:30:02Z [restore\_to\_time: 2025-03-24T18:30:07Z]  
2025-03-25T18:30:01Z [restore\_to\_time: 2025-03-25T18:30:07Z]  
2025-03-26T18:30:02Z [restore\_to\_time: 2025-03-26T18:30:08Z]  
2025-03-27T18:30:01Z [restore\_to\_time: 2025-03-27T18:30:07Z]  
2025-03-28T18:30:01Z [restore\_to\_time: 2025-03-28T18:30:07Z]  
2025-03-29T18:30:01Z [restore\_to\_time: 2025-03-29T18:30:07Z]  
2025-03-30T18:30:02Z [restore\_to\_time: 2025-03-30T18:30:07Z]  
2025-03-31T18:30:01Z [restore\_to\_time: 2025-03-31T18:30:06Z]  
2025-04-01T18:30:02Z [restore\_to\_time: 2025-04-01T18:30:07Z]  
2025-04-02T18:30:01Z [restore\_to\_time: 2025-04-02T18:30:07Z]  
2025-04-03T18:30:01Z [restore\_to\_time: 2025-04-03T18:30:06Z]  
2025-04-04T18:30:01Z [restore\_to\_time: 2025-04-04T18:30:07Z]  
2025-04-05T18:30:02Z [restore\_to\_time: 2025-04-05T18:30:08Z]  
2025-04-06T18:30:01Z [restore\_to\_time: 2025-04-06T18:30:06Z]  
2025-04-07T18:30:02Z [restore\_to\_time: 2025-04-07T18:30:07Z]  
2025-04-08T18:30:01Z [restore\_to\_time: 2025-04-08T18:30:07Z]  
2025-04-09T18:30:01Z [restore\_to\_time: 2025-04-09T18:30:07Z]  
2025-04-10T18:30:02Z [restore\_to\_time: 2025-04-10T18:30:07Z]  
2025-04-11T18:30:02Z [restore\_to\_time: 2025-04-11T18:30:07Z]  
2025-04-12T18:30:01Z [restore\_to\_time: 2025-04-12T18:30:07Z]  
2025-04-13T18:30:01Z [restore\_to\_time: 2025-04-13T18:30:07Z]  
2025-04-14T18:30:02Z [restore\_to\_time: 2025-04-14T18:30:07Z]  
2025-04-15T18:30:02Z [restore\_to\_time: 2025-04-15T18:30:10Z]  
2025-04-16T18:30:01Z [restore\_to\_time: 2025-04-16T18:30:06Z]  
2025-04-16T19:07:46Z [restore\_to\_time: 2025-04-16T19:07:51Z]  
2025-04-16T19:09:48Z [restore\_to\_time: 2025-04-16T19:09:53Z]  
2025-04-16T19:12:14Z [restore\_to\_time: 2025-04-16T19:12:20Z]  
2025-04-16T19:17:06Z [restore\_to\_time: 2025-04-16T19:17:11Z]

PITR :

help me restore the data

---

<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:** [April 22, 2025, 2:10pm UTC](https://forums.percona.com/t/unable-to-restore-the-backup-from-any-of-the-backup-files-using-pbm-agent/37662/2 "2025-04-22T14:10:47Z")

</div>

@venkatesh.devireddy

The agent seems not able to get the state of the node. Have you check if the node is not in some recovery ? I mean its connecting fine and in proper Primary/Secondary state ?

```auto
map[.pbm.restore/2025-04-18T09:22:05.983189955Z/rs.rs0/node.web1..com:27017:{} .pbm.restore/2025-04-18T09:22:05.983189955Z/rs.rs0/node.web2..com:27017:{}]
Apr 18 14:56:11 web1.****.com pbm-agent[1424782]: 2025-04-18T14:56:11.000+0530 E [restore/2025-04-18T09:22:05.983189955Z] restore: move to running state: wait for nodes in rs: check heartbeat in .pbm.restore/2025-04-18T09:22:05.983189955Z/rs.rs0/node.web2.****.com:27017.hb: stuck, last beat ts: 1744968126
Apr 18 14:56:11 web1. *******.com pbm-agent[1424782]: 2025-04-18T14:56:11.000+0530 D [restore/2025-04-18T09:22:05.983189955Z] hearbeats stopped

```

Can you check the **`pbm logs`** of the backup and restore jobs other than the agent status ? Is mongo logs come clean without any such noticeable warning/error ?

Was this backup previously taken with the same PBM version ? Is that logical or physical backup ?
