# Restore snapshot with different index name

**URL:** <https://discuss.elastic.co/t/restore-snapshot-with-different-index-name/258450>\
**Category:** Elasticsearch\
**Created:** [December 11, 2020, 8:26pm UTC](https://discuss.elastic.co/t/restore-snapshot-with-different-index-name/258450 "2020-12-11T20:26:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [December 11, 2020, 8:26pm UTC](https://discuss.elastic.co/t/restore-snapshot-with-different-index-name/258450/1 "2020-12-11T20:26:38Z")

</div>

I have a snapshot and name of the index is my\_index1  
I did copy whole tar ball and transfer to new cluster

here I put this snpshot. Now I can see that when I do GET status

I am trying to restore this index here with new name you\_index1 but do not know how to do this..

in API it does not work when I do this.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/4/64251ddaa38ade0abec086206eb6c043d6c8e4db.png)

from command line also it does not work. it just restores index with same name

```
POST /_snapshot/my_index1/10dec2020/_restore
{
  "indices": "my_index1",
  "ignore_unavailable": true,
  "include_global_state": true,
  "rename_pattern": "your_index1"
}
```

---

<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:** [January 8, 2021, 8:26pm UTC](https://discuss.elastic.co/t/restore-snapshot-with-different-index-name/258450/2 "2021-01-08T20:26:52Z")

</div>

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