# Restore backup logical

**URL:** <https://forums.percona.com/t/restore-backup-logical/19854>\
**Category:** Percona Server for MongoDB\
**Tags:** percona, mongodb\
**Created:** [January 31, 2023, 5:19pm UTC](https://forums.percona.com/t/restore-backup-logical/19854 "2023-01-31T17:19:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthursilva91](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@arthursilva91](https://forums.percona.com/u/arthursilva91)\
**Post date:** [January 31, 2023, 5:19pm UTC](https://forums.percona.com/t/restore-backup-logical/19854/1 "2023-01-31T17:19:45Z")

</div>

Non-existent file when restoring my backup.

“pbm backup –ns=dbteste.movie”

"pbm list  
Backup snapshots:  
2023-01-31T14:57:04Z \<logical, selective\> [restore\_to\_time: 2023-01-31T14:57:08Z] "

pbm restore 2023-01-31T14:57:04Z --ns dbteste.movie  
**Starting restore 2023-01-31T17:08:33.616097234Z from ‘2023-01-31T14:57:04Z’…Error: failed to ensure snapshot file 2023-01-31T14:57:04Z/rs0/metadata.json: no such file**  
**- Restore on replicaset “rs0” in state: error: failed to ensure snapshot file 2023-01-31T14:57:04Z/rs0/metadata.json: no such file**

---

<div class="post-metadata">

**Author:** ![jenunes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jenunes/32/9331_2.png) [@jenunes](https://forums.percona.com/u/jenunes)\
**Post date:** [February 14, 2023, 10:03pm UTC](https://forums.percona.com/t/restore-backup-logical/19854/2 "2023-02-14T22:03:44Z")

</div>

Hi Arthur,

Please provide a bit more detail about your configuration:

- pbm status
- pbm config --list
- pbm logs -t 50

_Ensure to hide any sensitive information it might have._

That should bring a bit more information.

Alongside that, do you have access to your storage location?  
If so, I’d suggest taking a new backup and checking if the _medata.json_ file will be created under the shard directory; In that case, under _rs0_.

---

<div class="post-metadata">

**Author:** ![radoslaw.szulgo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/radoslaw.szulgo/32/17315_2.png) [@radoslaw.szulgo](https://forums.percona.com/u/radoslaw.szulgo)\
**Post date:** [July 22, 2024, 10:51am UTC](https://forums.percona.com/t/restore-backup-logical/19854/3 "2024-07-22T10:51:38Z")

</div>

@arthursilva91 have that solution resolved your issue?
