# Snapshot migration on existing index

**URL:** <https://discuss.elastic.co/t/snapshot-migration-on-existing-index/318663>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [November 10, 2022, 1:25pm UTC](https://discuss.elastic.co/t/snapshot-migration-on-existing-index/318663 "2022-11-10T13:25:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Gupta1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_gupta1/32/113209_2.png) [@Rahul\_Gupta1](https://discuss.elastic.co/u/Rahul_Gupta1)\
**Post date:** [November 10, 2022, 1:25pm UTC](https://discuss.elastic.co/t/snapshot-migration-on-existing-index/318663/1 "2022-11-10T13:25:52Z")

</div>

Is it possible to migrate the snapshot from one cluster to another cluster where the index mapping is present ?

when i tried that same thing based on the local facing the following issue: -

```auto
{
    "error": {
        "root_cause": [
            {
                "type": "snapshot_restore_exception",
                "reason": "[rahul_backup:snapshot_rahul_new/9nEFwoxhTkuXWHkg6TrvOw] cannot restore index [my_new_index] because an open index with same name already exists in the cluster. Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name"
            }
        ],
        "type": "snapshot_restore_exception",
        "reason": "[rahul_backup:snapshot_rahul_new/9nEFwoxhTkuXWHkg6TrvOw] cannot restore index [my_new_index] because an open index with same name already exists in the cluster. Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name"
    },
    "status": 500
}

```

How can we mitigate this issue, keeping the index un-altered ?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 10, 2022, 1:41pm UTC](https://discuss.elastic.co/t/snapshot-migration-on-existing-index/318663/2 "2022-11-10T13:41:04Z")

</div>

If an index with the same name already exists, you won't be able to restore the snapshot using the same name, you will need to use other name as explained in the error message you got.

> Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 8, 2022, 1:41pm UTC](https://discuss.elastic.co/t/snapshot-migration-on-existing-index/318663/3 "2022-12-08T13:41:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
