# Replicating data from one ES cluster to another

**URL:** <https://discuss.elastic.co/t/replicating-data-from-one-es-cluster-to-another/11785>\
**Category:** Elasticsearch\
**Created:** [May 2, 2013, 6:25pm UTC](https://discuss.elastic.co/t/replicating-data-from-one-es-cluster-to-another/11785 "2013-05-02T18:25:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rachel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rachel/32/2373_2.png) [@rachel](https://discuss.elastic.co/u/rachel)\
**Post date:** [May 2, 2013, 6:25pm UTC](https://discuss.elastic.co/t/replicating-data-from-one-es-cluster-to-another/11785/1 "2013-05-02T18:25:13Z")

</div>

Hello,

We are trying to replicate the data on one ElasticSearch cluster onto  
another using rsync and so far, to no avail. We'd like to perform some  
recovery experiments using v.0.90.0.RC1 but we need to assume the data and  
setup of one environment (Cluster A) to our testing environment (Cluster  
B). We have the following questions:

1. Is there a specific place the cluster identity is coded within  
ElasticSearch, if anywhere?

2. Is it possible to make Cluster A assume the data of Cluster B,  
clobbering Cluster B's original contents?

3. Is it possible to replicate an index from Cluster A to Cluster B and  
force it to assume the shards, etc?

This is purely for developmental purposes, so it doesn't matter if we need  
to restart ElasitcSearch or if we need to manually modify any files. We are using  
a local gateway.

Thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [May 2, 2013, 7:15pm UTC](https://discuss.elastic.co/t/replicating-data-from-one-es-cluster-to-another/11785/2 "2013-05-02T19:15:13Z")

</div>

This should be easy - just rsync over the data/ directory. The only thing  
that you may need to change is the cluster name, which forms part of the  
path under data/

Clint

On Thu, May 2, 2013 at 8:25 PM, [rachel@infochimps.com](mailto:rachel@infochimps.com) wrote:

> Hello,
> 
> We are trying to replicate the data on one Elasticsearch cluster onto  
> another using rsync and so far, to no avail. We'd like to perform some  
> recovery experiments using v.0.90.0.RC1 but we need to assume the data and  
> setup of one environment (Cluster A) to our testing environment (Cluster  
> B). We have the following questions:
> 
> 1. Is there a specific place the cluster identity is coded within  
> Elasticsearch, if anywhere?
> 
> 2. Is it possible to make Cluster A assume the data of Cluster B,  
> clobbering Cluster B's original contents?
> 
> 3. Is it possible to replicate an index from Cluster A to Cluster B and  
> force it to assume the shards, etc?
> 
> This is purely for developmental purposes, so it doesn't matter if we need  
> to restart ElasitcSearch or if we need to manually modify any files. We  
> are using a local gateway.
> 
> Thanks!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:38am UTC](https://discuss.elastic.co/t/replicating-data-from-one-es-cluster-to-another/11785/3 "2017-07-06T02:38:36Z")

</div>


