ES snapshot

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

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

ls ~/elkbackup

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.

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

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

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