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