# How to copy data from old cluster to new cluster

**URL:** <https://discuss.elastic.co/t/how-to-copy-data-from-old-cluster-to-new-cluster/332470>\
**Category:** Elasticsearch\
**Created:** [May 3, 2023, 7:35pm UTC](https://discuss.elastic.co/t/how-to-copy-data-from-old-cluster-to-new-cluster/332470 "2023-05-03T19:35:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naga\_Prudhvi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/naga_prudhvi/32/99501_2.png) [@Naga\_Prudhvi](https://discuss.elastic.co/u/Naga_Prudhvi)\
**Post date:** [May 3, 2023, 7:35pm UTC](https://discuss.elastic.co/t/how-to-copy-data-from-old-cluster-to-new-cluster/332470/1 "2023-05-03T19:35:59Z")

</div>

Hi I am trying to copy all the index (150) from old cluster to new cluster.

Trying reindex api is throwing error, and snapshot and restore is not an option.  
any other ways to migrate, so that all mapping and data setting everything is migrated smoothly to new cluster.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 3, 2023, 8:02pm UTC](https://discuss.elastic.co/t/how-to-copy-data-from-old-cluster-to-new-cluster/332470/2 "2023-05-03T20:02:46Z")

</div>

Logstash may be a good choice

---

<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:** [May 3, 2023, 8:24pm UTC](https://discuss.elastic.co/t/how-to-copy-data-from-old-cluster-to-new-cluster/332470/3 "2023-05-03T20:24:10Z")

</div>

are they both same version?

other option is python. read from one, write to other

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 3, 2023, 8:31pm UTC](https://discuss.elastic.co/t/how-to-copy-data-from-old-cluster-to-new-cluster/332470/4 "2023-05-03T20:31:17Z")

</div>

Snapshot and restore would be the natural solution as it would move indices with mappings and settings. Why is this not an option?

Reindexing from remote or through a script is the other way, but will require you to manage mappings and settings yourself. It would help if you showed the error you hotvwhen you tried.

---

<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:** [May 31, 2023, 8:32pm UTC](https://discuss.elastic.co/t/how-to-copy-data-from-old-cluster-to-new-cluster/332470/5 "2023-05-31T20:32:06Z")

</div>

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