# Import index from another Elasticsearch

**URL:** <https://discuss.elastic.co/t/import-index-from-another-elasticsearch/287167>\
**Category:** Elasticsearch\
**Created:** [October 20, 2021, 8:49am UTC](https://discuss.elastic.co/t/import-index-from-another-elasticsearch/287167 "2021-10-20T08:49:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangeshs](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mangeshs](https://discuss.elastic.co/u/mangeshs)\
**Post date:** [October 20, 2021, 8:49am UTC](https://discuss.elastic.co/t/import-index-from-another-elasticsearch/287167/1 "2021-10-20T08:49:26Z")

</div>

I have two Elasticsearch in same system and I want index with it's data from first Elasticsearch to second one in new index.  
How it's done?

---

<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:** [October 20, 2021, 9:29am UTC](https://discuss.elastic.co/t/import-index-from-another-elasticsearch/287167/2 "2021-10-20T09:29:21Z")

</div>

Snapshot / restore  
Or  
Reindex from remote

---

<div class="post-metadata">

**Author:** ![mangeshs](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mangeshs](https://discuss.elastic.co/u/mangeshs)\
**Post date:** [October 20, 2021, 9:36am UTC](https://discuss.elastic.co/t/import-index-from-another-elasticsearch/287167/3 "2021-10-20T09:36:46Z")

</div>

can you provide some details how to do that.  
documentation may help

---

<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:** [October 20, 2021, 11:57am UTC](https://discuss.elastic.co/t/import-index-from-another-elasticsearch/287167/4 "2021-10-20T11:57:45Z")

</div>

> **[Snapshot and restore | Elasticsearch Guide \[7.15\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html)**

And

> **[Reindex API | Elasticsearch Guide \[7.15\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#reindex-from-remote)**

---

<div class="post-metadata">

**Author:** ![Tamil\_Selvan03](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tamil_selvan03/32/96325_2.png) [@Tamil\_Selvan03](https://discuss.elastic.co/u/Tamil_Selvan03)\
**Post date:** [October 25, 2021, 3:18pm UTC](https://discuss.elastic.co/t/import-index-from-another-elasticsearch/287167/5 "2021-10-25T15:18:58Z")

</div>

By mistake I collapsed Elasticsearch files, now its not working. I downloaded new files of same version, could I able to retrieve my previous index from that old folder.

---

<div class="post-metadata">

**Author:** ![mangeshs](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mangeshs](https://discuss.elastic.co/u/mangeshs)\
**Post date:** [October 26, 2021, 6:59am UTC](https://discuss.elastic.co/t/import-index-from-another-elasticsearch/287167/6 "2021-10-26T06:59:37Z")

</div>

Have you taken snapshot of older index? If Yes follow restore API given on official doc

---

<div class="post-metadata">

**Author:** ![Tamil\_Selvan03](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tamil_selvan03/32/96325_2.png) [@Tamil\_Selvan03](https://discuss.elastic.co/u/Tamil_Selvan03)\
**Post date:** [October 26, 2021, 7:31am UTC](https://discuss.elastic.co/t/import-index-from-another-elasticsearch/287167/7 "2021-10-26T07:31:27Z")

</div>

Nope. Is there any other option to retrieve by replacing indices folder structure on data folder

---

<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:** [November 23, 2021, 7:31am UTC](https://discuss.elastic.co/t/import-index-from-another-elasticsearch/287167/8 "2021-11-23T07:31:55Z")

</div>

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