# ES backup repository exception

**URL:** <https://discuss.elastic.co/t/es-backup-repository-exception/104091>\
**Category:** Elasticsearch\
**Created:** [October 16, 2017, 12:40pm UTC](https://discuss.elastic.co/t/es-backup-repository-exception/104091 "2017-10-16T12:40:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramesh205](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@ramesh205](https://discuss.elastic.co/u/ramesh205)\
**Post date:** [October 16, 2017, 12:40pm UTC](https://discuss.elastic.co/t/es-backup-repository-exception/104091/1 "2017-10-16T12:40:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [October 22, 2017, 11:56am UTC](https://discuss.elastic.co/t/es-backup-repository-exception/104091/2 "2017-10-22T11:56:34Z")

</div>

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

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

---

<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:** [November 19, 2017, 11:56am UTC](https://discuss.elastic.co/t/es-backup-repository-exception/104091/3 "2017-11-19T11:56:59Z")

</div>

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