# Restore elasticsearch snapshot to existing index

**URL:** https://discuss.elastic.co/t/restore-elasticsearch-snapshot-to-existing-index/299185
**Category:** Elasticsearch
**Tags:** snapshot-and-restore
**Created:** [March 9, 2022, 8:40am UTC](https://discuss.elastic.co/t/restore-elasticsearch-snapshot-to-existing-index/299185 "2022-03-09T08:40:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Rahmat\_Agung\_W](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Rahmat\_Agung\_W](https://discuss.elastic.co/u/Rahmat_Agung_W)
#### Post date: [March 9, 2022, 8:40am UTC](https://discuss.elastic.co/t/restore-elasticsearch-snapshot-to-existing-index/299185/1 "2022-03-09T08:40:55Z")

</div>

So I want to migrate Elasticsearch data to new cluster and n my old cluster I create daily snapshot. I restore the snapshot to new cluster once, and the next day when I try to restore again I get an error because the index is existed. Is it by design or are there any way to restore snapshot to existing index by appending data on existing index?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 9, 2022, 9:55am UTC](https://discuss.elastic.co/t/restore-elasticsearch-snapshot-to-existing-index/299185/2 "2022-03-09T09:55:04Z")

</div>

You can only restore on a closed index. So close it before.

---

<div class="post-metadata">

### Author: ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)
#### Post date: [March 9, 2022, 10:05am UTC](https://discuss.elastic.co/t/restore-elasticsearch-snapshot-to-existing-index/299185/3 "2022-03-09T10:05:31Z")

</div>

1. close then restore
2. rename the index when restore
3. delete old index and then restore

and in case1，restore is incremental，can reuse old segment file if they don't change

---

<div class="post-metadata">

### Author: ![Rahmat\_Agung\_W](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Rahmat\_Agung\_W](https://discuss.elastic.co/u/Rahmat_Agung_W)
#### Post date: [March 18, 2022, 8:11am UTC](https://discuss.elastic.co/t/restore-elasticsearch-snapshot-to-existing-index/299185/4 "2022-03-18T08:11:31Z")

</div>

thanks for the answer!

---

<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: [April 15, 2022, 8:11am UTC](https://discuss.elastic.co/t/restore-elasticsearch-snapshot-to-existing-index/299185/5 "2022-04-15T08:11:41Z")

</div>

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