# Copying and renaming a cluster

**URL:** <https://discuss.elastic.co/t/copying-and-renaming-a-cluster/4259>\
**Category:** Elasticsearch\
**Created:** [April 19, 2011, 10:35pm UTC](https://discuss.elastic.co/t/copying-and-renaming-a-cluster/4259 "2011-04-19T22:35:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Gaffney](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_gaffney/32/3108_2.png) [@Mike\_Gaffney](https://discuss.elastic.co/u/Mike_Gaffney)\
**Post date:** [April 19, 2011, 10:35pm UTC](https://discuss.elastic.co/t/copying-and-renaming-a-cluster/4259/1 "2011-04-19T22:35:23Z")

</div>

I've got a production cluster that I would like to mirror down to  
development intact. I'd like to rename the cluster so I don't get  
confused and things don't conflict. What would I need to do to do  
this. My gateway is up on S3 and I have local files in EBS for the  
nodes. I was going to copy the local files to the new cluster nodes  
and the S3 files to the new bucket. What else do I need to do.

Thanks!

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 19, 2011, 11:25pm UTC](https://discuss.elastic.co/t/copying-and-renaming-a-cluster/4259/2 "2011-04-19T23:25:45Z")

</div>

You should also change under the data directory of each node the name of hte cluster. The format is: data/cluster\_name/nodes/N/... .

Out of curiosity, why do you use both EBS for data location, and s3? If you use s3 gateway, then you can keep the data on the local instance disk, its already backed in s3.

If you want ot use EBS, then use local gateway, will be faster and use less resources (s3).

-shay.banon  
On Wednesday, April 20, 2011 at 1:35 AM, mr.gaffo wrote:

> I've got a production cluster that I would like to mirror down to  
> development intact. I'd like to rename the cluster so I don't get  
> confused and things don't conflict. What would I need to do to do  
> this. My gateway is up on S3 and I have local files in EBS for the  
> nodes. I was going to copy the local files to the new cluster nodes  
> and the S3 files to the new bucket. What else do I need to do.
> 
> Thanks!

---

<div class="post-metadata">

**Author:** ![Mike\_Gaffney](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_gaffney/32/3108_2.png) [@Mike\_Gaffney](https://discuss.elastic.co/u/Mike_Gaffney)\
**Post date:** [April 19, 2011, 11:52pm UTC](https://discuss.elastic.co/t/copying-and-renaming-a-cluster/4259/3 "2011-04-19T23:52:08Z")

</div>

We were doing it as backup and super backup.

That's interesting though, thanks for the suggestion. I thought we  
needed to have both.

So if the local is on ephemeral storage and we restart the node (eg  
local is wiped), it'll just sync with S3, join the cluster, and go?

-Mike

On Apr 19, 4:25 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> You should also change under the data directory of each node the name of hte cluster. The format is: data/cluster\_name/nodes/N/... .
> 
> Out of curiosity, why do you use both EBS for data location, and s3? If you use s3 gateway, then you can keep the data on the local instance disk, its already backed in s3.
> 
> If you want ot use EBS, then use local gateway, will be faster and use less resources (s3).
> 
> -shay.banon
> 
> On Wednesday, April 20, 2011 at 1:35 AM, mr.gaffo wrote:
> 
> > I've got a production cluster that I would like to mirror down to  
> > development intact. I'd like to rename the cluster so I don't get  
> > confused and things don't conflict. What would I need to do to do  
> > this. My gateway is up on S3 and I have local files in EBS for the  
> > nodes. I was going to copy the local files to the new cluster nodes  
> > and the S3 files to the new bucket. What else do I need to do.
> 
> > Thanks!

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 19, 2011, 11:55pm UTC](https://discuss.elastic.co/t/copying-and-renaming-a-cluster/4259/4 "2011-04-19T23:55:43Z")

</div>

Yep, it will resync with s3, and possibly need to download all those index files again. Though, if its on ebs, then not as much data will be downloaded since the node data dir can be reused.  
On Wednesday, April 20, 2011 at 2:52 AM, mr.gaffo wrote:

> We were doing it as backup and super backup.
> 
> That's interesting though, thanks for the suggestion. I thought we  
> needed to have both.
> 
> So if the local is on ephemeral storage and we restart the node (eg  
> local is wiped), it'll just sync with S3, join the cluster, and go?
> 
> -Mike
> 
> On Apr 19, 4:25 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > You should also change under the data directory of each node the name of hte cluster. The format is: data/cluster\_name/nodes/N/... .
> > 
> > Out of curiosity, why do you use both EBS for data location, and s3? If you use s3 gateway, then you can keep the data on the local instance disk, its already backed in s3.
> > 
> > If you want ot use EBS, then use local gateway, will be faster and use less resources (s3).
> > 
> > -shay.banon
> > 
> > On Wednesday, April 20, 2011 at 1:35 AM, mr.gaffo wrote:
> > 
> > > I've got a production cluster that I would like to mirror down to  
> > > development intact. I'd like to rename the cluster so I don't get  
> > > confused and things don't conflict. What would I need to do to do  
> > > this. My gateway is up on S3 and I have local files in EBS for the  
> > > nodes. I was going to copy the local files to the new cluster nodes  
> > > and the S3 files to the new bucket. What else do I need to do.
> > 
> > > Thanks!

---

<div class="post-metadata">

**Author:** ![yogesh\_r](https://avatars.discourse-cdn.com/v4/letter/y/a9adbd/32.png) [@yogesh\_r](https://discuss.elastic.co/u/yogesh_r)\
**Post date:** [May 31, 2016, 6:40am UTC](https://discuss.elastic.co/t/copying-and-renaming-a-cluster/4259/5 "2016-05-31T06:40:44Z")

</div>

i want to copy kibana dashboard from local to clustrer ,that kibana  
dashboard has 40 visualization plots in local. i want to copy that to  
cluster .  
i tried importing all dashboard and visulization from local  
to cluster in setting tabs , its giving error coudn't locate index  
pattern.  
are there any better way of coping from local to cluster ?

---

<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 5, 2017, 10:47pm UTC](https://discuss.elastic.co/t/copying-and-renaming-a-cluster/4259/6 "2017-07-05T22:47:52Z")

</div>


