Hi,
I am trying to create snapshot and hence I set path.repo as /data/backup-5.6.3-prod-052019 in elasticsearch.yml configuration. While running below command to create snapshot
PUT /_snapshot/my_backup
{
"type" : "fs",
"settings":
{
"location": "/data/backup-5.6.3-prod-052019",
"compress": true
}
}
gives this error message:-{
"error": {
"root_cause": [
{
"type": "repository_exception",
"reason": "[my_backup] location [/data/backup-5.6.3-prod-052019] doesn't match any of the locations specified by path.repo because this setting is empty"
}
],
"type": "repository_exception",
"reason": "[my_backup] failed to create repository",
"caused_by": {
"type": "repository_exception",
"reason": "[my_backup] location [/data/backup-5.6.3-prod-052019] doesn't match any of the locations specified by path.repo because this setting is empty"
}
},
"status": 500
}
Attached is elasticsearch.yml and elasticsearch logs. Any help is greatly appreciated.