# Backup from ES data to a remote machine

**URL:** <https://discuss.elastic.co/t/backup-from-es-data-to-a-remote-machine/117998>\
**Category:** Elasticsearch\
**Created:** [February 1, 2018, 10:44am UTC](https://discuss.elastic.co/t/backup-from-es-data-to-a-remote-machine/117998 "2018-02-01T10:44:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zara](https://avatars.discourse-cdn.com/v4/letter/z/b9bd4f/32.png) [@zara](https://discuss.elastic.co/u/zara)\
**Post date:** [February 1, 2018, 10:44am UTC](https://discuss.elastic.co/t/backup-from-es-data-to-a-remote-machine/117998/1 "2018-02-01T10:44:46Z")

</div>

hi all...  
i am working on a project that puts its results to elastic search during running on a server... my data is growing and i want to save my elastic search data in a new remote server in order to move whole data from entire server to new remote server and continue there.  
As i read, i should create repository and take snapshot...i did it locally on my entire server by creating repository, setting path.repo in .yml and taking snapshot!  
The problem is that, i want to backup my data on a remote server (not locally) in order to continue on it...  
i should say that, i am very new at elastic search world, so please guide me in details...  
i need your fast replies, thanks a lot...  
Best regards...

---

<div class="post-metadata">

**Author:** ![bbailey](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@bbailey](https://discuss.elastic.co/u/bbailey)\
**Post date:** [February 1, 2018, 10:51am UTC](https://discuss.elastic.co/t/backup-from-es-data-to-a-remote-machine/117998/2 "2018-02-01T10:51:47Z")

</div>

I have been succesfully using elasticdump to move indices from cluster to cluster or to create daily backups of my elasticsearch data

> **[elasticdump](https://www.npmjs.com/package/elasticdump)**
>
> import and export tools for elasticsearch

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 1, 2018, 10:59am UTC](https://discuss.elastic.co/t/backup-from-es-data-to-a-remote-machine/117998/3 "2018-02-01T10:59:07Z")

</div>

Reindex API can read old cluster and index in the new cluster

---

<div class="post-metadata">

**Author:** ![zara](https://avatars.discourse-cdn.com/v4/letter/z/b9bd4f/32.png) [@zara](https://discuss.elastic.co/u/zara)\
**Post date:** [February 1, 2018, 12:57pm UTC](https://discuss.elastic.co/t/backup-from-es-data-to-a-remote-machine/117998/4 "2018-02-01T12:57:36Z")

</div>

@dadoonet thanks for your reply... i used Reindex API... it seems that there is a problem about some data types, because i faced with this error and reindex process is not completed:

"error" : {  
"root\_cause" : [  
{  
"type" : "status\_exception",  
"reason" : "body={"error":{"root\_cause":[{"type":"search\_context\_missing\_exception","reason":"No search context found for id [41875]"},{"type":"search\_context\_missing\_exception","reason":"No search context found for id [41874]"},{"type":"search\_context\_missing\_exception","reason":"No search context found for id [41870]\ ...........  
}  
there is different types of data in my results such as string, date, id , .... does it relate to this error?  
i have another question; my data is very large, more than 50 G... is there any limit about size in remote Reindex method?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 2, 2018, 2:23pm UTC](https://discuss.elastic.co/t/backup-from-es-data-to-a-remote-machine/117998/5 "2018-02-02T14:23:17Z")

</div>

Most likely you got a timeout or something while running the scroll.

> my data is very large, more than 50 G.

That might explain.

It depends on the size of your docs. As per [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html), I can read:

> Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. If the remote index includes very large documents you’ll need to use a smaller batch size. The example below sets the batch size 10 which is very, very small.

May be change the size. Or look at slicing options???

---

<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:** [March 2, 2018, 2:23pm UTC](https://discuss.elastic.co/t/backup-from-es-data-to-a-remote-machine/117998/6 "2018-03-02T14:23:24Z")

</div>

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