# Restoring index from S3 Snapshot

**URL:** <https://discuss.elastic.co/t/restoring-index-from-s3-snapshot/33547>\
**Category:** Elasticsearch\
**Created:** [November 2, 2015, 5:17pm UTC](https://discuss.elastic.co/t/restoring-index-from-s3-snapshot/33547 "2015-11-02T17:17:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)\
**Post date:** [November 2, 2015, 5:17pm UTC](https://discuss.elastic.co/t/restoring-index-from-s3-snapshot/33547/1 "2015-11-02T17:17:25Z")

</div>

I am trying to restore a single index from S3 snapshot and I am getting the following error

curl -XPOST "[http://localhost:9200/\_snapshot/s3\_rep/snapshot\_events\_2015\_07\_2015\_11\_01/\_restore](http://localhost:9200/_snapshot/s3_rep/snapshot_events_2015_07_2015_11_01/_restore)" -d '{  
"indices": "events-2015.07.01",  
"ignore\_unavailable": "true",  
"include\_global\_state": false  
}'

{"error":"ElasticsearchIllegalArgumentException[failed to parse repository source [{\n "indices": "events-2015.07.01",\n "ignore\_unavailable": "true",\n "include\_global\_state": false\n}]]; nested: ElasticsearchIllegalArgument

The path does exist, I am able to list the index successfully using the

curl -s -XGET "localhost:9200/\_snapshot/s3\_rep/snapshot\_events\_2015\_07\_2015\_11\_01/\_status?pretty" | grep events-2015.07.01  
"events-2015.07.01" : {

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 3, 2015, 6:55am UTC](https://discuss.elastic.co/t/restoring-index-from-s3-snapshot/33547/2 "2015-11-03T06:55:08Z")

</div>

Is there more to the error?  
Is there anything in the ES logs?

---

<div class="post-metadata">

**Author:** ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)\
**Post date:** [November 3, 2015, 3:10pm UTC](https://discuss.elastic.co/t/restoring-index-from-s3-snapshot/33547/3 "2015-11-03T15:10:37Z")

</div>

There is no error in the ES logs, I have ran this command in the past when my ES was 1.4.5  
Nothing else has changed except my ES is now 1.7.1  
Is there a change on the syntax to restore and index from S3 snapshot?

curl -XPOST "[http://localhost:9200/\_snapshot/s3\_repository/snapshot\_events\_2015\_07\_2015\_11\_01/\_restore](http://localhost:9200/_snapshot/s3_repository/snapshot_events_2015_07_2015_11_01/_restore)" -d '{  
"indices": "events-2015.07.01",  
"ignore\_unavailable": "true",  
"include\_global\_state": false  
}'

{"error":"ElasticsearchIllegalArgumentException[failed to parse repository source [{\n "indices": "events-2015.07.01",\n "ignore\_unavailable": "true",\n "include\_global\_state": false\n}]]; nested: ElasticsearchIllegalArgumentException[Unknown parameter ignore\_unavailable]; ","status":400} tmp]$

---

<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:** [July 5, 2017, 11:40pm UTC](https://discuss.elastic.co/t/restoring-index-from-s3-snapshot/33547/4 "2017-07-05T23:40:53Z")

</div>


