# How to export a cluster index?

**URL:** <https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658>\
**Category:** Elasticsearch\
**Created:** [October 21, 2011, 1:43pm UTC](https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658 "2011-10-21T13:43:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spico\_Florin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spico_florin/32/49309_2.png) [@Spico\_Florin](https://discuss.elastic.co/u/Spico_Florin)\
**Post date:** [October 21, 2011, 1:43pm UTC](https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658/1 "2011-10-21T13:43:26Z")

</div>

Hello!  
I have a cluster (7 machines) with 7 nodes and 7 shards. I would like to  
export the elastic search index in such a way it can be restore it on one  
machine. Is there any tool or command that will do that?

I'll look forward for your answers.  
Thank you.  
Regards,  
Florin

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [October 21, 2011, 2:06pm UTC](https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658/2 "2011-10-21T14:06:32Z")

</div>

Ibeleive gateway is the answer -

> **[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.

Thanks  
Vineeth

On Fri, Oct 21, 2011 at 7:13 PM, Spico Florin [spicoflorin@gmail.com](mailto:spicoflorin@gmail.com) wrote:

> Hello!  
> I have a cluster (7 machines) with 7 nodes and 7 shards. I would like to  
> export the Elasticsearch index in such a way it can be restore it on one  
> machine. Is there any tool or command that will do that?
> 
> I'll look forward for your answers.  
> Thank you.  
> Regards,  
> Florin

---

<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:** [October 21, 2011, 6:22pm UTC](https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658/3 "2011-10-21T18:22:24Z")

</div>

There isn't one specific, you can scan search the index and reindex it into  
another cluster. Do you want to start the whole 7 node cluster on a single  
machine?

On Fri, Oct 21, 2011 at 3:43 PM, Spico Florin [spicoflorin@gmail.com](mailto:spicoflorin@gmail.com) wrote:

> Hello!  
> I have a cluster (7 machines) with 7 nodes and 7 shards. I would like to  
> export the Elasticsearch index in such a way it can be restore it on one  
> machine. Is there any tool or command that will do that?
> 
> I'll look forward for your answers.  
> Thank you.  
> Regards,  
> Florin

---

<div class="post-metadata">

**Author:** ![Spico\_Florin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spico_florin/32/49309_2.png) [@Spico\_Florin](https://discuss.elastic.co/u/Spico_Florin)\
**Post date:** [October 22, 2011, 4:34pm UTC](https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658/4 "2011-10-22T16:34:25Z")

</div>

Hello!  
Thanks for your answers. My export should export the index scattered on 7  
machines to one machine. Due to the fact that the two clusters are not in  
the same network we should export the index in a file and then copy it to  
the destination machine. After the copy process, we would like to restore  
the index. The snapshot feature can help us?

Regards,  
Florin

On Fri, Oct 21, 2011 at 8:22 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> There isn't one specific, you can scan search the index and reindex it into  
> another cluster. Do you want to start the whole 7 node cluster on a single  
> machine?
> 
> On Fri, Oct 21, 2011 at 3:43 PM, Spico Florin [spicoflorin@gmail.com](mailto:spicoflorin@gmail.com)wrote:
> 
> > Hello!  
> > I have a cluster (7 machines) with 7 nodes and 7 shards. I would like  
> > to export the Elasticsearch index in such a way it can be restore it on one  
> > machine. Is there any tool or command that will do that?
> > 
> > I'll look forward for your answers.  
> > Thank you.  
> > Regards,  
> > Florin

---

<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:** [October 23, 2011, 12:13am UTC](https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658/5 "2011-10-23T00:13:50Z")

</div>

I suggest using the scan API then, no, the snapshot API will not help.

On Sat, Oct 22, 2011 at 6:34 PM, Spico Florin [spicoflorin@gmail.com](mailto:spicoflorin@gmail.com) wrote:

> Hello!  
> Thanks for your answers. My export should export the index scattered on 7  
> machines to one machine. Due to the fact that the two clusters are not in  
> the same network we should export the index in a file and then copy it to  
> the destination machine. After the copy process, we would like to restore  
> the index. The snapshot feature can help us?
> 
> Regards,  
> Florin
> 
> On Fri, Oct 21, 2011 at 8:22 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > There isn't one specific, you can scan search the index and reindex it  
> > into another cluster. Do you want to start the whole 7 node cluster on a  
> > single machine?
> > 
> > On Fri, Oct 21, 2011 at 3:43 PM, Spico Florin [spicoflorin@gmail.com](mailto:spicoflorin@gmail.com)wrote:
> > 
> > > Hello!  
> > > I have a cluster (7 machines) with 7 nodes and 7 shards. I would like  
> > > to export the Elasticsearch index in such a way it can be restore it on one  
> > > machine. Is there any tool or command that will do that?
> > > 
> > > I'll look forward for your answers.  
> > > Thank you.  
> > > Regards,  
> > > Florin

---

<div class="post-metadata">

**Author:** ![Andrej](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Andrej](https://discuss.elastic.co/u/Andrej)\
**Post date:** [November 29, 2011, 1:13pm UTC](https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658/6 "2011-11-29T13:13:53Z")

</div>

Shay, will scan search and reindexing work when I have an index where  
I exclude fields from \_source? When doing a scan search I can not  
retrieve all fields (cause they are just analyzed, not stored), right?  
So the new index wouldnt be equal. If so, what would be a good  
strategy?

Thanks,  
Andrej

On 21 Okt., 19:22, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> There isn't one specific, you can scan search the index and reindex it into  
> another cluster. Do you want to start the whole 7 node cluster on a single  
> machine?

---

<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:** [November 29, 2011, 3:16pm UTC](https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658/7 "2011-11-29T15:16:33Z")

</div>

Right, if you don't store the whole \_source, you can't really reindex from  
elasticsearch, no black magic there... . You need to have the original  
content somewhere to reindex.

On Tue, Nov 29, 2011 at 3:13 PM, Andrej Rosenheinrich \<  
[andrej.rosenheinrich@unister.de](mailto:andrej.rosenheinrich@unister.de)\> wrote:

> Shay, will scan search and reindexing work when I have an index where  
> I exclude fields from \_source? When doing a scan search I can not  
> retrieve all fields (cause they are just analyzed, not stored), right?  
> So the new index wouldnt be equal. If so, what would be a good  
> strategy?
> 
> Thanks,  
> Andrej
> 
> On 21 Okt., 19:22, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > There isn't one specific, you can scan search the index and reindex it  
> > into  
> > another cluster. Do you want to start the whole 7 node cluster on a  
> > single  
> > machine?

---

<div class="post-metadata">

**Author:** ![Andrej](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Andrej](https://discuss.elastic.co/u/Andrej)\
**Post date:** [November 29, 2011, 3:27pm UTC](https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658/8 "2011-11-29T15:27:12Z")

</div>

Considering that most talks about reindexing actually have backups in  
mind and that excluding fields from source creates problems here:  
would it be an (may be long term) option to include methods for backup  
of an index to ES? I'm sure I am not the only user with such an  
request ...

On 29 Nov., 16:16, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Right, if you don't store the whole \_source, you can't really reindex from  
> elasticsearch, no black magic there... . You need to have the original  
> content somewhere to reindex.
> 
> On Tue, Nov 29, 2011 at 3:13 PM, Andrej Rosenheinrich \<
> 
> [andrej.rosenheinr...@unister.de](mailto:andrej.rosenheinr...@unister.de)\> wrote:
> 
> > Shay, will scan search and reindexing work when I have an index where  
> > I exclude fields from \_source? When doing a scan search I can not  
> > retrieve all fields (cause they are just analyzed, not stored), right?  
> > So the new index wouldnt be equal. If so, what would be a good  
> > strategy?
> 
> > Thanks,  
> > Andrej
> 
> > On 21 Okt., 19:22, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > 
> > > There isn't one specific, you can scan search the index and reindex it  
> > > into  
> > > another cluster. Do you want to start the whole 7 node cluster on a  
> > > single  
> > > machine?

---

<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, 3:47am UTC](https://discuss.elastic.co/t/how-to-export-a-cluster-index/5658/9 "2017-07-06T03:47:05Z")

</div>


