# How to restore a cluster from the snapshot of the local machine

**URL:** <https://discuss.elastic.co/t/how-to-restore-a-cluster-from-the-snapshot-of-the-local-machine/184679>\
**Category:** Elasticsearch\
**Created:** [June 7, 2019, 1:55am UTC](https://discuss.elastic.co/t/how-to-restore-a-cluster-from-the-snapshot-of-the-local-machine/184679 "2019-06-07T01:55:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kdev/32/47676_2.png) [@kdev](https://discuss.elastic.co/u/kdev)\
**Post date:** [June 7, 2019, 1:55am UTC](https://discuss.elastic.co/t/how-to-restore-a-cluster-from-the-snapshot-of-the-local-machine/184679/1 "2019-06-07T01:55:59Z")

</div>

Hi, guys.  
I need to restore a cluster to the server's elasticsearch engine from a snapshot that is on my local machine.  
In this case, how can I set the path.repo in the server's elasticsearch.yml?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Julien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien/32/19688_2.png) [@Julien](https://discuss.elastic.co/u/Julien)\
**Post date:** [June 8, 2019, 10:36pm UTC](https://discuss.elastic.co/t/how-to-restore-a-cluster-from-the-snapshot-of-the-local-machine/184679/2 "2019-06-08T22:36:29Z")

</div>

You will need to set up the path.repo  
path.repo: '/valid/location/of/repo'  
and the snapshot [per doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_shared_file_system_repository) then [restore including global state](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_restore)

Thanks

---

<div class="post-metadata">

**Author:** ![kdev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kdev/32/47676_2.png) [@kdev](https://discuss.elastic.co/u/kdev)\
**Post date:** [June 9, 2019, 1:07am UTC](https://discuss.elastic.co/t/how-to-restore-a-cluster-from-the-snapshot-of-the-local-machine/184679/3 "2019-06-09T01:07:25Z")

</div>

Things that I did to restore the cluster are as following:

- made a snapshot from the server elasticsearch
- downloaded the repo from the server to my local machine (mac)
- installed ubuntu server to virtualbox on my local machine
- installed elasticsearch and kibana to the ubuntu server installed
- made the shared folder between the mac and the ubuntu server that includes the downloaded repo
- set the path.repo to the shared folder in ubuntu server elasticsearch yml.

But after that, elasticsearch doesn't work.

Original elasticsearch version - 6.5  
New elasticsearch version - 7.1

Is that possible?  
What am I wrong?

Thanks.

---

<div class="post-metadata">

**Author:** ![Julien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien/32/19688_2.png) [@Julien](https://discuss.elastic.co/u/Julien)\
**Post date:** [June 10, 2019, 11:48am UTC](https://discuss.elastic.co/t/how-to-restore-a-cluster-from-the-snapshot-of-the-local-machine/184679/4 "2019-06-10T11:48:27Z")

</div>

> [@kdev](#):
>
> But after that, elasticsearch doesn't work.

What does this mean  
Is elasticsearch not starting (if so; check the log why) ?  
or is there an error when you try to create the snapshot repo (PUT /\_snapshot/my\_backup from [doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_repositories))

---

<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 8, 2019, 11:48am UTC](https://discuss.elastic.co/t/how-to-restore-a-cluster-from-the-snapshot-of-the-local-machine/184679/5 "2019-07-08T11:48:29Z")

</div>

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