# ES snapshot

**URL:** <https://discuss.elastic.co/t/es-snapshot/170355>\
**Category:** Elasticsearch\
**Created:** [February 28, 2019, 1:38pm UTC](https://discuss.elastic.co/t/es-snapshot/170355 "2019-02-28T13:38:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasudevan](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@vasudevan](https://discuss.elastic.co/u/vasudevan)\
**Post date:** [February 28, 2019, 1:38pm UTC](https://discuss.elastic.co/t/es-snapshot/170355/1 "2019-02-28T13:38:25Z")

</div>

I have created a snapshot on my single node ELK server and will be able to restore from that snapshot taken. But I can't see any file/content under my backup directory. Below is the command and it's output FYR,

I have created folder "elkbackup" in the root  
In elasticsearch.yml :  
path.repo: ["~/elkbackup"]

PUT \_snapshot/mybackup/one?wait\_for\_completion=true: **SUCCEESS**

GET \_snapshot/mybackup/\_all : **SUCCEESS**  
{  
"snapshots": [  
{  
"snapshot": "one",  
"uuid": "lfWFZk39QIS4658dFKnGvg",  
"version\_id": 6020499,  
"version": "6.2.4",  
"indices": [  
"metricbeat-6.2.4-2019.02.28",  
"metricbeat-6.2.4-2019.02.26",  
"tfslog-2019.02.25",  
"metricbeat-6.2.4-2019.02.25",  
".kibana"  
],  
"include\_global\_state": true,  
"state": "SUCCESS",  
"start\_time": "2019-02-28T12:01:32.350Z",  
"start\_time\_in\_millis": 1551355292350,  
"end\_time": "2019-02-28T12:01:45.766Z",  
"end\_time\_in\_millis": 1551355305766,  
"duration\_in\_millis": 13416,  
"failures": ,  
"shards": {  
"total": 9,  
"failed": 0,  
"successful": 9  
}  
}  
]  
}

GET /\_cat/repositories?v : **SUCCEESS**  
id type  
mybackup fs

Then I can restore as well:  
POST \_snapshot/mybackup/one/\_restore: **SUCCEESS**  
{  
"indices": "metricbeat-6.2.4-2019.02.26",  
"ignore\_unavailable": "true",  
"include\_global\_state": false  
}

But no data under elkbackup folder: **Failed**  
I am expecting content under elkbackup/mybackup/one/\*\* but nothing inside this folder. But restore is success I can access index and all. Can you help me where exactly the content gets stored

---

<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 28, 2019, 2:11pm UTC](https://discuss.elastic.co/t/es-snapshot/170355/2 "2019-02-28T14:11:10Z")

</div>

Can you from the user who is running elasticsearch process, run:

```auto
ls ~/elkbackup

```

---

<div class="post-metadata">

**Author:** ![vasudevan](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@vasudevan](https://discuss.elastic.co/u/vasudevan)\
**Post date:** [March 1, 2019, 8:06am UTC](https://discuss.elastic.co/t/es-snapshot/170355/3 "2019-03-01T08:06:26Z")

</div>

Thanks for the reply. My actual issue is that, I am running ELK as docker container so the above mentioned folder is created inside docker container, So I am mounting that container volume with host volume to see it's contents.

---

<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:** [March 1, 2019, 11:33am UTC](https://discuss.elastic.co/t/es-snapshot/170355/4 "2019-03-01T11:33:50Z")

</div>

May be you did not persist the volume in docker? So that's may be more a Docker question than elasticsearch one?

---

<div class="post-metadata">

**Author:** ![vasudevan](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@vasudevan](https://discuss.elastic.co/u/vasudevan)\
**Post date:** [March 5, 2019, 11:09am UTC](https://discuss.elastic.co/t/es-snapshot/170355/5 "2019-03-05T11:09:50Z")

</div>

Yes. Also with above mentioned approach my issue solved. Thanks for your inputs here

---

<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:** [April 2, 2019, 11:09am UTC](https://discuss.elastic.co/t/es-snapshot/170355/6 "2019-04-02T11:09:52Z")

</div>

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