ES backup repository exception

Step1: created local folder and updated that path in es.yml file
Step2:created repository
PUT /_snapshot/ESBackup
{ "type": "fs",
"settings": {
"location": "jupiterindex3",
"compress": "true"
}}
step3:backup start
PUT /_snapshot/ESBackup
{
"indices": "jupiterindex3",
"ignore_unavailable": true,
"include_global_state": false
}
error as shown below:

"error": {
"root_cause": [
{
"type": "action_request_validation_exception",
"reason": "Validation Failed: 1: type is missing;"
}
]
Step4: added type of index
PUT /_snapshot/ESBackup
{ "type": "fs",
"settings": {
"location": "jupiterindex3",
"compress": "true",
"type":"logs"
}}

PUT /_snapshot/ESBackup
{
"indices": "jupiterindex3",
"type":"logs",
"ignore_unavailable": true,
"include_global_state": false
}
Again another error came:
"error": {
"root_cause": [
{
"type": "repository_exception",
"reason": "[ESBackup] repository type [logs] does not exist"
}

Please let me know what to do.

You are missing snapshot name at the end of the URL in step3:backup start

PUT /_snapshot/ESBackup/snapshot1
{
   "indices": "jupiterindex3",
   "ignore_unavailable": true,
   "include_global_state": false
}

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