# Moving data from one cluster to other cluster

**URL:** https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495
**Category:** Elasticsearch
**Created:** [April 25, 2019, 3:27pm UTC](https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495 "2019-04-25T15:27:28Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)
#### Post date: [April 25, 2019, 3:27pm UTC](https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495/1 "2019-04-25T15:27:28Z")

</div>

there are situations where we need to copy the data (indices or timestamp range) from one cluster to another cluster. is there a tool or efficient way to get this done ? Any pointers will be useful. Thanks.

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [April 26, 2019, 6:36am UTC](https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495/2 "2019-04-26T06:36:18Z")

</div>

check out the [reindex from remote](https://www.elastic.co/guide/en/elasticsearch/reference/7.0/reindex-upgrade-remote.html) feature

---

<div class="post-metadata">

### Author: ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)
#### Post date: [April 26, 2019, 1:04pm UTC](https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495/3 "2019-04-26T13:04:37Z")

</div>

We have three clusters , which we will rotate between specific period of time. In this case would this help ? Also few cluster on 6.2.2 and one on 6.5.4 ... please let me know.

In this we need to change the clustername in elastic config everytime we rotate and restart the cluster. Would be good to know if we can achieve this without config change every time and not restarting every time.

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [April 26, 2019, 7:51pm UTC](https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495/4 "2019-04-26T19:51:53Z")

</div>

I do not understand why you use three clusters, neither why you need to change the cluster name - it seems this has nothing to do with the initial problem. But I'd be happy to understand why you are doing this, so feel free to take a step back and explain further.

You can reindex from remote among different cluster versions.

---

<div class="post-metadata">

### Author: ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)
#### Post date: [April 26, 2019, 7:55pm UTC](https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495/5 "2019-04-26T19:55:14Z")

</div>

we have 3 cluster at a given time. where one will be prod and remaining 2 will be backup. When one is prod , we will use other 2 as backup and once development is complete we will move one of the backup to prod. then the prod will become a backup. so we keep rotating the clusters. Given these situation , we may need to copy data from prod to backup as and when needed or when we find the gaps. So trying to understand how to fill the data in this situation ?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [April 26, 2019, 7:58pm UTC](https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495/6 "2019-04-26T19:58:42Z")

</div>

why aren't you using a single cluster with different indices and aliases instead? This sounds like a lot of operational overhead from the outside.

---

<div class="post-metadata">

### Author: ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)
#### Post date: [April 29, 2019, 10:31pm UTC](https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495/7 "2019-04-29T22:31:18Z")

</div>

our projects demands this way. all clusters are similar with same indices. so when there is a gap in one cluster we want to copy the data to patch the hole. Anyway to accomplish this ?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [April 30, 2019, 12:11pm UTC](https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495/8 "2019-04-30T12:11:45Z")

</div>

You may want to check out CCR then. See [https://www.elastic.co/guide/en/elastic-stack-overview/current/xpack-ccr.html](https://www.elastic.co/guide/en/elastic-stack-overview/current/xpack-ccr.html)

---

<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 28, 2019, 12:11pm UTC](https://discuss.elastic.co/t/moving-data-from-one-cluster-to-other-cluster/178495/9 "2019-05-28T12:11:47Z")

</div>

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