# Standing up new instance want to copy indexes/documents from old instance

**URL:** <https://discuss.elastic.co/t/standing-up-new-instance-want-to-copy-indexes-documents-from-old-instance/17804>\
**Category:** Elasticsearch\
**Created:** [May 29, 2014, 12:44pm UTC](https://discuss.elastic.co/t/standing-up-new-instance-want-to-copy-indexes-documents-from-old-instance/17804 "2014-05-29T12:44:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Didjit](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Didjit](https://discuss.elastic.co/u/Didjit)\
**Post date:** [May 29, 2014, 12:44pm UTC](https://discuss.elastic.co/t/standing-up-new-instance-want-to-copy-indexes-documents-from-old-instance/17804/1 "2014-05-29T12:44:35Z")

</div>

Hi,

Dug around and cant seem to find the answer. I have an existing instance of  
ELK running. I'm currently setting up a new instance on separate hardware.  
I want to copy the documnets/indexes over to the new instance so I can  
preserve the history. Can someone point me to a doc or give some tips on  
how to accomplish this?

Thank you,

Didjit

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 29, 2014, 11:37pm UTC](https://discuss.elastic.co/t/standing-up-new-instance-want-to-copy-indexes-documents-from-old-instance/17804/2 "2014-05-29T23:37:48Z")

</div>

If you want to keep the same cluster name, just add the new nodes to the  
existing cluster, let it rebalance, then remove the olds nodes.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 29 May 2014 22:44, Didjit [didjit86@gmail.com](mailto:didjit86@gmail.com) wrote:

> Hi,
> 
> Dug around and cant seem to find the answer. I have an existing instance  
> of ELK running. I'm currently setting up a new instance on separate  
> hardware. I want to copy the documnets/indexes over to the new instance so  
> I can preserve the history. Can someone point me to a doc or give some tips  
> on how to accomplish this?
> 
> Thank you,
> 
> Didjit
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624b0X5PXETj-YsY0UAaFur1T-q0cyTuA3tAYeXeFR3WpBw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624b0X5PXETj-YsY0UAaFur1T-q0cyTuA3tAYeXeFR3WpBw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Didjit](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Didjit](https://discuss.elastic.co/u/Didjit)\
**Post date:** [May 31, 2014, 3:11pm UTC](https://discuss.elastic.co/t/standing-up-new-instance-want-to-copy-indexes-documents-from-old-instance/17804/3 "2014-05-31T15:11:16Z")

</div>

Thanks. I wish I could find docs that explain more in detail.

in the elasticsearch.yml, would I name both instances with the same cluster  
name, each with their own node name. Fire both instances up. After they  
sync, then just shut down the original instance?

If there is a doc you can point me to, that would help too.

Thanks

Didjit

On Thursday, May 29, 2014 7:38:24 PM UTC-4, Mark Walkom wrote:

> If you want to keep the same cluster name, just add the new nodes to the  
> existing cluster, let it rebalance, then remove the olds nodes.
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com) \<javascript:\>  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 29 May 2014 22:44, Didjit \<[didj...@gmail.com](mailto:didj...@gmail.com) \<javascript:\>\> wrote:
> 
> > Hi,
> > 
> > Dug around and cant seem to find the answer. I have an existing instance  
> > of ELK running. I'm currently setting up a new instance on separate  
> > hardware. I want to copy the documnets/indexes over to the new instance so  
> > I can preserve the history. Can someone point me to a doc or give some tips  
> > on how to accomplish this?
> > 
> > Thank you,
> > 
> > Didjit
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/45ddb5be-d0da-41e2-a9f3-82986e831f56%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/45ddb5be-d0da-41e2-a9f3-82986e831f56%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Lance\_Lakey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lance_lakey/32/1524_2.png) [@Lance\_Lakey](https://discuss.elastic.co/u/Lance_Lakey)\
**Post date:** [June 1, 2014, 5:25am UTC](https://discuss.elastic.co/t/standing-up-new-instance-want-to-copy-indexes-documents-from-old-instance/17804/4 "2014-06-01T05:25:49Z")

</div>

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Pretty much.  
Your nodes do need to be configured with the same cluster name. If you let  
the original node default to "elasticsearch" then you could let the new  
node default to "elasticsearch" as well.  
You don't need to configure their node names

On Saturday, May 31, 2014 8:11:16 AM UTC-7, Didjit wrote:

> Thanks. I wish I could find docs that explain more in detail.
> 
> in the elasticsearch.yml, would I name both instances with the same  
> cluster name, each with their own node name. Fire both instances up. After  
> they sync, then just shut down the original instance?
> 
> If there is a doc you can point me to, that would help too.
> 
> Thanks
> 
> Didjit
> 
> On Thursday, May 29, 2014 7:38:24 PM UTC-4, Mark Walkom wrote:
> 
> > If you want to keep the same cluster name, just add the new nodes to the  
> > existing cluster, let it rebalance, then remove the olds nodes.
> > 
> > Regards,  
> > Mark Walkom
> > 
> > Infrastructure Engineer  
> > Campaign Monitor  
> > email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com)  
> > web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> > 
> > On 29 May 2014 22:44, Didjit [didj...@gmail.com](mailto:didj...@gmail.com) wrote:
> > 
> > > Hi,
> > > 
> > > Dug around and cant seem to find the answer. I have an existing instance  
> > > of ELK running. I'm currently setting up a new instance on separate  
> > > hardware. I want to copy the documnets/indexes over to the new instance so  
> > > I can preserve the history. Can someone point me to a doc or give some tips  
> > > on how to accomplish this?
> > > 
> > > Thank you,
> > > 
> > > Didjit
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c5481c18-4550-4e64-b069-9122da4643e4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5bec7b2f-e425-401f-a01d-c3dff773a4f7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5bec7b2f-e425-401f-a01d-c3dff773a4f7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:25am UTC](https://discuss.elastic.co/t/standing-up-new-instance-want-to-copy-indexes-documents-from-old-instance/17804/5 "2017-07-06T01:25:28Z")

</div>


