# Elasticsearch backupandRestore

**URL:** <https://discuss.elastic.co/t/elasticsearch-backupandrestore/198135>\
**Category:** Kibana\
**Created:** [September 5, 2019, 1:36am UTC](https://discuss.elastic.co/t/elasticsearch-backupandrestore/198135 "2019-09-05T01:36:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunny1](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@sunny1](https://discuss.elastic.co/u/sunny1)\
**Post date:** [September 5, 2019, 1:36am UTC](https://discuss.elastic.co/t/elasticsearch-backupandrestore/198135/1 "2019-09-05T01:36:36Z")

</div>

Hello All, I have elasticsearch, filebeat and kibana installed on one server and have been using it for 2 years now. Today i got to know that server i was using will be removed/teardown and no copy of data will happen. I will have to reinstall everything from scratch on new server. Wanted to know how we can backup the elasticsearch data and use it to restore on new server. Any help really appreciate it.

Thanks.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [September 5, 2019, 6:11pm UTC](https://discuss.elastic.co/t/elasticsearch-backupandrestore/198135/2 "2019-09-05T18:11:49Z")

</div>

Since you have a single instance, you have quite a few options with varying levels of configuration complexity and uptime.

1. Shut the node down, copy the data, and start it back up on the new server.

2. Elasticsearch has a [Snapshot and Restore](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html) feature you could use to snapshot the data and restore to a new cluster somewhere else.

3. You could use [Cross-Cluster Replication](https://www.elastic.co/blog/cross-datacenter-replication-with-elasticsearch-cross-cluster-replication)

---

<div class="post-metadata">

**Author:** ![sunny1](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@sunny1](https://discuss.elastic.co/u/sunny1)\
**Post date:** [September 5, 2019, 8:17pm UTC](https://discuss.elastic.co/t/elasticsearch-backupandrestore/198135/3 "2019-09-05T20:17:54Z")

</div>

Hello Tyler, thanks for immediate response. If you could elaborate more on option 1, will be of great help. I am not much familiar with detail concept of how elasticsearch/kibana works inside out. If the option is easy compared to other two, i can have shutdown elasticsearch/kibana service and can have good down time to backup the data.

--Sunny

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [September 5, 2019, 9:08pm UTC](https://discuss.elastic.co/t/elasticsearch-backupandrestore/198135/4 "2019-09-05T21:08:35Z")

</div>

as @tylersmalley said #1 is easy

copy all in another system.  
config  
/etc/elasticsearch  
/etc/kibana  
/etc/logstash

data  
what ever your datapath dir, I have /data01/elasticsearch

and on new server (same name) copy back this and It will work. I have done that once. hopefully going to do same in November when new server comes in.

---

<div class="post-metadata">

**Author:** ![sunny1](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@sunny1](https://discuss.elastic.co/u/sunny1)\
**Post date:** [September 5, 2019, 10:30pm UTC](https://discuss.elastic.co/t/elasticsearch-backupandrestore/198135/5 "2019-09-05T22:30:20Z")

</div>

Oh ok got it, great if it works that way. Thanks much.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [September 5, 2019, 10:32pm UTC](https://discuss.elastic.co/t/elasticsearch-backupandrestore/198135/6 "2019-09-05T22:32:52Z")

</div>

Yup, as Sachin said just copy the elasticsearch and kibana directories over to the new server. You can even do a test run and copy it over to the new server to verify everything works as expected to minimize downtime.

---

<div class="post-metadata">

**Author:** ![sunny1](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@sunny1](https://discuss.elastic.co/u/sunny1)\
**Post date:** [September 5, 2019, 10:35pm UTC](https://discuss.elastic.co/t/elasticsearch-backupandrestore/198135/7 "2019-09-05T22:35:36Z")

</div>

Yup, thats the plan i will follow. Thanks Tyler and Sachin. Will update here once all goes well.

---

<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:** [October 30, 2019, 6:54pm UTC](https://discuss.elastic.co/t/elasticsearch-backupandrestore/198135/9 "2019-10-30T18:54:30Z")

</div>

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