# Elastic search restore failure

**URL:** <https://discuss.elastic.co/t/elastic-search-restore-failure/374162>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [February 6, 2025, 6:34am UTC](https://discuss.elastic.co/t/elastic-search-restore-failure/374162 "2025-02-06T06:34:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthiknathan\_c](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthiknathan_c/32/141192_2.png) [@Karthiknathan\_c](https://discuss.elastic.co/u/Karthiknathan_c)\
**Post date:** [February 6, 2025, 6:34am UTC](https://discuss.elastic.co/t/elastic-search-restore-failure/374162/1 "2025-02-06T06:34:28Z")

</div>

I was trying to backup and restore ES to new cluster using below commands.

```auto
//take snapshot
curl -u backup:$password -s -XPUT ${endpoint}

//restore
curl -s -u backup:$password -X POST "${HOSTNAME}:${PORT}/_snapshot/${BACKUP}/$SNAPSHOT/_restore?wait_for_completion=true&pretty" -H 'Content-Type: application/json' -d' {
  "indices": "*",
  "include_global_state": true}
  '

```

Restore is failing with below error in 8.17. which worked in 8.15.

```auto
failed to restore snapshot
org.elasticsearch.snapshots.SnapshotRestoreException: [my_restore_backup:snapshot-es-estestwithoutsvc-nh3rfy-0/OOBj_xvpRE2JvkhJGm9SXg] cannot restore index [.ds-.logs-deprecation.elasticsearch-default-2025.01.21-000001] 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

```

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [February 6, 2025, 10:38am UTC](https://discuss.elastic.co/t/elastic-search-restore-failure/374162/2 "2025-02-06T10:38:55Z")

</div>

Hi @Karthiknathan_c !

Did you try doing what the error message says to do?

> [@Karthiknathan\_c](#):
>
> `Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name`

Also this wouldn't have worked in 8.15 either. No versions of ES support restoring an index on top of an open index with the same name.
