# Best way to backup the elastic search data(Entire Nodes Folder) from one machine to another machine?

**URL:** https://discuss.elastic.co/t/best-way-to-backup-the-elastic-search-data-entire-nodes-folder-from-one-machine-to-another-machine/105049
**Category:** Elasticsearch
**Created:** [October 24, 2017, 11:24am UTC](https://discuss.elastic.co/t/best-way-to-backup-the-elastic-search-data-entire-nodes-folder-from-one-machine-to-another-machine/105049 "2017-10-24T11:24:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![PrabakarKaruppasamy](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@PrabakarKaruppasamy](https://discuss.elastic.co/u/PrabakarKaruppasamy)
#### Post date: [October 24, 2017, 11:24am UTC](https://discuss.elastic.co/t/best-way-to-backup-the-elastic-search-data-entire-nodes-folder-from-one-machine-to-another-machine/105049/1 "2017-10-24T11:24:53Z")

</div>

Hi All,

What is the best way to backup the entire data (/var/lib/elasticsearch/nodes) from one machine to another machine in elasticsearch 5.4.0

How to take the backup of entire node folder and restore it.

Thanks

---

<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: [October 24, 2017, 5:40pm UTC](https://discuss.elastic.co/t/best-way-to-backup-the-elastic-search-data-entire-nodes-folder-from-one-machine-to-another-machine/105049/2 "2017-10-24T17:40:16Z")

</div>

We'd recommend the use of snapshot and restore - [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/modules-snapshots.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/modules-snapshots.html)

However you should be also able to copy that directory over.

---

<div class="post-metadata">

### Author: ![PrabakarKaruppasamy](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@PrabakarKaruppasamy](https://discuss.elastic.co/u/PrabakarKaruppasamy)
#### Post date: [October 25, 2017, 6:07am UTC](https://discuss.elastic.co/t/best-way-to-backup-the-elastic-search-data-entire-nodes-folder-from-one-machine-to-another-machine/105049/3 "2017-10-25T06:07:00Z")

</div>

@warkolm

Not able to find taking the backup of full directory. Which one is best among the three FS, S3, or HDFS.

Thanks.

---

<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: [October 25, 2017, 6:06pm UTC](https://discuss.elastic.co/t/best-way-to-backup-the-elastic-search-data-entire-nodes-folder-from-one-machine-to-another-machine/105049/4 "2017-10-25T18:06:25Z")

</div>

It really depends on what is available to you.

---

<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: [December 4, 2017, 5:15am UTC](https://discuss.elastic.co/t/best-way-to-backup-the-elastic-search-data-entire-nodes-folder-from-one-machine-to-another-machine/105049/6 "2017-12-04T05:15:17Z")

</div>

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