# Restore backup from replica set to a sharded cluster

**URL:** <https://forums.percona.com/t/restore-backup-from-replica-set-to-a-sharded-cluster/37465>\
**Category:** Percona Backup for MongoDB\
**Created:** [April 2, 2025, 3:33pm UTC](https://forums.percona.com/t/restore-backup-from-replica-set-to-a-sharded-cluster/37465 "2025-04-02T15:33:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gu1nn3zz](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Gu1nn3zz](https://forums.percona.com/u/Gu1nn3zz)\
**Post date:** [April 2, 2025, 3:33pm UTC](https://forums.percona.com/t/restore-backup-from-replica-set-to-a-sharded-cluster/37465/1 "2025-04-02T15:33:06Z")

</div>

I have a replica set running, and I want to move to a sharded cluster. I know I can create a sharded cluster from a replica set but it’s not the requirements I’m given for now.

So I’m wondering if PBM provides a way to restore the backup made on a replica set into a newly created sharded cluster?

After creating a backup and configuring PBM to use my storage, waiting for the sync, the snapshots in `pbm status` show : `incompatible: Backup doesn't match current cluster topology - it has different replica set names. Extra shards in the backup will cause this, for a simple example. The extra/unknown replica set names found in the backup are: REDACTED. Backup has no data for the config server or sole replicaset`.

I’m wondering if there’s however a way to restore this backup to a sharded cluster ? Remap pattern doesn’t seem to work but maybe I did not find the correct way to use it for that case?

---

<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:** [April 3, 2025, 11:33am UTC](https://forums.percona.com/t/restore-backup-from-replica-set-to-a-sharded-cluster/37465/2 "2025-04-03T11:33:45Z")

</div>

Hi, currently it is not possible. Feel free to open a feature request at [jira.percona.com](http://jira.percona.com)

---

<div class="post-metadata">

**Author:** ![Gu1nn3zz](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Gu1nn3zz](https://forums.percona.com/u/Gu1nn3zz)\
**Post date:** [April 3, 2025, 11:51am UTC](https://forums.percona.com/t/restore-backup-from-replica-set-to-a-sharded-cluster/37465/3 "2025-04-03T11:51:43Z")

</div>

Thanks!  
I’ll make sure to open a feature request!
