# Backup/restore ES data

**URL:** https://discuss.elastic.co/t/backup-restore-es-data/177273
**Category:** Elasticsearch
**Created:** [April 17, 2019, 10:35am UTC](https://discuss.elastic.co/t/backup-restore-es-data/177273 "2019-04-17T10:35:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![blueren](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@blueren](https://discuss.elastic.co/u/blueren)
#### Post date: [April 17, 2019, 10:35am UTC](https://discuss.elastic.co/t/backup-restore-es-data/177273/1 "2019-04-17T10:35:16Z")

</div>

I have an ES instance + replica running on a machine. I would like to move it all to a separate machine. I was able to do it using [elasticdump](https://www.npmjs.com/package/elasticdump) - However, before proceeding with moving all of the data, I want to know if I need to run the dump on the replica's data also. Or running it on just the main instance enough? Will there be any loss of data if I do not dump data out from the old replica to the new replica?

Thanks.

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [April 17, 2019, 11:14am UTC](https://discuss.elastic.co/t/backup-restore-es-data/177273/2 "2019-04-17T11:14:46Z")

</div>

Generally we recommend [snapshot and restore](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html) for taking backups, to make sure you get everything you need. I don't think that `elasticdump` copies cluster metadata like templates across, which is what the `"include_global_state": true` restore setting does.

You can also shut down your cluster, move all the data directories to their new locations, and then start Elasticsearch up again in its new home.

---

<div class="post-metadata">

### Author: ![blueren](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@blueren](https://discuss.elastic.co/u/blueren)
#### Post date: [April 17, 2019, 12:35pm UTC](https://discuss.elastic.co/t/backup-restore-es-data/177273/3 "2019-04-17T12:35:38Z")

</div>

> [@DavidTurner](#):
>
> You can also shut down your cluster, move all the data directories to their new locations, and then start Elasticsearch up again in its new home.

This is the best news for my use case 🙂

---

<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: [May 15, 2019, 12:35pm UTC](https://discuss.elastic.co/t/backup-restore-es-data/177273/4 "2019-05-15T12:35:49Z")

</div>

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