# Recipe for restoring to different mongo cluster?

**URL:** <https://forums.percona.com/t/recipe-for-restoring-to-different-mongo-cluster/8248>\
**Category:** Percona Backup for MongoDB\
**Created:** [November 7, 2020, 7:03pm UTC](https://forums.percona.com/t/recipe-for-restoring-to-different-mongo-cluster/8248 "2020-11-07T19:03:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Neulinger](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nathan_neulinger/32/176_2.png) [@Nathan\_Neulinger](https://forums.percona.com/u/Nathan_Neulinger)\
**Post date:** [November 7, 2020, 7:03pm UTC](https://forums.percona.com/t/recipe-for-restoring-to-different-mongo-cluster/8248/1 "2020-11-07T19:03:21Z")

</div>

Is there any documentation/how-to/recipe available for doing a restore with pbm to a different mongo cluster?

In particular, to one with a different replica set name?

It looks like it would be straightforward to do a restore to another cluster with the same replica set name, but I’d like to be able to point pbm temporarily to a different backup destination from another cluster, and use that to restore. (i.e. from production to backup-validation server or from production to staging/test/qa to clone)

---

<div class="post-metadata">

**Author:** ![Akira\_Kurogane](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/akira_kurogane/32/1280_2.png) [@Akira\_Kurogane](https://forums.percona.com/u/Akira_Kurogane)\
**Post date:** [November 10, 2020, 12:34am UTC](https://forums.percona.com/t/recipe-for-restoring-to-different-mongo-cluster/8248/2 "2020-11-10T00:34:48Z")

</div>

Hi.

The answer is no, there is no recipe to insert to a cluster that uses a different replica set names.

In the restored data of the config server nodes the replica set names is tied to the shard id. A metadata rewrite to switch that on the fly whilst re-inserting data would be complicated.

---

<div class="post-metadata">

**Author:** ![Nathan\_Neulinger](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nathan_neulinger/32/176_2.png) [@Nathan\_Neulinger](https://forums.percona.com/u/Nathan_Neulinger)\
**Post date:** [November 10, 2020, 8:01am UTC](https://forums.percona.com/t/recipe-for-restoring-to-different-mongo-cluster/8248/3 "2020-11-10T08:01:07Z")

</div>

Ah, in my case it’s just a simple replica set, not sharded. I can definitely see the issue if it was a full sharded cluster.
