# Snapshot restore failure

**URL:** <https://discuss.elastic.co/t/snapshot-restore-failure/160542>\
**Category:** Elasticsearch\
**Created:** [December 12, 2018, 12:38pm UTC](https://discuss.elastic.co/t/snapshot-restore-failure/160542 "2018-12-12T12:38:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuwancs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuwancs/32/46419_2.png) [@nuwancs](https://discuss.elastic.co/u/nuwancs)\
**Post date:** [December 12, 2018, 12:38pm UTC](https://discuss.elastic.co/t/snapshot-restore-failure/160542/1 "2018-12-12T12:38:51Z")

</div>

Hi Team,  
I am trying to create and restore snapshots to make a huge data set for my testing purposes. Initially, I created few snapshots and restored them successfully. But suddenly I can't restore newly created indices. I haven't made any changes to the system and the only difference is data volume is bigger now.

Elasticsearch version: 6.3.0, single node setup

**Snapshot Created**  
PUT /\_snapshot/nuwan-backup2/snapshot\_transactions-cl2-2018.11.27-reindexed-x3?wait\_for\_completion=true  
{  
"indices": "transactions-2018.11.27-reindexed-1543757375.64",  
"ignore\_unavailable": true,  
"include\_global\_state": false  
}

**Output**  
{  
"snapshot": {  
"snapshot": "snapshot\_transactions-cl2-2018.11.27-reindexed-x3",  
"uuid": "JhsmFXmVR12OR-65fCtFXw",  
"version\_id": 6030099,  
"version": "6.3.0",  
"indices": [  
"transactions-2018.11.27-reindexed-1543757375.64"  
],  
"include\_global\_state": false,  
"state": "SUCCESS",  
"start\_time": "2018-12-12T12:32:26.645Z",  
"start\_time\_in\_millis": 1544617946645,  
"end\_time": "2018-12-12T12:32:26.750Z",  
"end\_time\_in\_millis": 1544617946750,  
"duration\_in\_millis": 105,  
"failures": ,  
"shards": {  
"total": 5,  
"failed": 0,  
"successful": 5  
}  
}  
}

**Snapshot status**

GET /\_snapshot/nuwan-backup2/snapshot\_transactions-cl2-2018.11.27-reindexed-x3/\_status

**Output**  
{  
"snapshots": [  
{  
"snapshot": "snapshot\_transactions-cl2-2018.11.27-reindexed-x3",  
"repository": "nuwan-backup2",  
"uuid": "JhsmFXmVR12OR-65fCtFXw",  
"state": "SUCCESS",  
"include\_global\_state": false,  
"shards\_stats": {  
"initializing": 0,  
"started": 0,  
"finalizing": 0,  
"done": 5,  
"failed": 0,  
"total": 5  
},  
"stats": {  
"number\_of\_files": 0,  
"processed\_files": 0,  
"total\_size\_in\_bytes": 0,  
"processed\_size\_in\_bytes": 0,  
"start\_time\_in\_millis": 1544617946662,  
"time\_in\_millis": 78  
},  
"indices": {  
"transactions-2018.11.27-reindexed-1543757375.64": {  
"shards\_stats": {  
"initializing": 0,  
"started": 0,  
"finalizing": 0,  
"done": 5,  
"failed": 0,  
"total": 5  
},  
"stats": {  
"number\_of\_files": 0,  
"processed\_files": 0,  
"total\_size\_in\_bytes": 0,  
"processed\_size\_in\_bytes": 0,  
"start\_time\_in\_millis": 1544617946662,  
"time\_in\_millis": 78  
},  
"shards": {  
"0": {  
"stage": "DONE",  
"stats": {  
"number\_of\_files": 0,  
"processed\_files": 0,  
"total\_size\_in\_bytes": 0,  
"processed\_size\_in\_bytes": 0,  
"start\_time\_in\_millis": 1544617946696,  
"time\_in\_millis": 17  
}  
},  
"1": {  
"stage": "DONE",  
"stats": {  
"number\_of\_files": 0,  
"processed\_files": 0,  
"total\_size\_in\_bytes": 0,  
"processed\_size\_in\_bytes": 0,  
"start\_time\_in\_millis": 1544617946722,  
"time\_in\_millis": 18  
}  
},  
"2": {  
"stage": "DONE",  
"stats": {  
"number\_of\_files": 0,  
"processed\_files": 0,  
"total\_size\_in\_bytes": 0,  
"processed\_size\_in\_bytes": 0,  
"start\_time\_in\_millis": 1544617946662,  
"time\_in\_millis": 18  
}  
},  
"3": {  
"stage": "DONE",  
"stats": {  
"number\_of\_files": 0,  
"processed\_files": 0,  
"total\_size\_in\_bytes": 0,  
"processed\_size\_in\_bytes": 0,  
"start\_time\_in\_millis": 1544617946662,  
"time\_in\_millis": 18  
}  
},  
"4": {  
"stage": "DONE",  
"stats": {  
"number\_of\_files": 0,  
"processed\_files": 0,  
"total\_size\_in\_bytes": 0,  
"processed\_size\_in\_bytes": 0,  
"start\_time\_in\_millis": 1544617946696,  
"time\_in\_millis": 20  
}  
}  
}  
}  
}  
}  
]  
}

**Snapshot Restore**  
POST /\_snapshot/nuwan-backup2/snapshot\_transactions-cl2-2018.11.27-reindexed-x3/\_restore  
{  
"indices": "snapshot-x2",  
"ignore\_unavailable": true,  
"include\_global\_state": true,  
"rename\_pattern": "s(.+)",  
"rename\_replacement": "s$1"  
}

**Output**  
{  
"snapshot": {  
"snapshot": "snapshot\_transactions-cl2-2018.11.27-reindexed-x3",  
"indices": ,  
"shards": {  
"total": 0,  
"failed": 0,  
"successful": 0  
}  
}  
}

No new index generated!

---

<div class="post-metadata">

**Author:** ![nuwancs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuwancs/32/46419_2.png) [@nuwancs](https://discuss.elastic.co/u/nuwancs)\
**Post date:** [December 12, 2018, 4:16pm UTC](https://discuss.elastic.co/t/snapshot-restore-failure/160542/2 "2018-12-12T16:16:30Z")

</div>

I have incorrectly configured restore request, it should be

```auto
POST /_snapshot/nuwan-backup2/snapshot_transactions-cl2-2018.11.27-reindexed-x3/_restore
    {
      "indices": "transactions-2018.11.27-reindexed-1543757375.64",
      "ignore_unavailable": true,
      "include_global_state": true,
      "rename_pattern": "transactions-2018.11.27-reindexed-1543757375.64",
      "rename_replacement": "snapshot-x2"
    }  

```

---

<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:** [January 9, 2019, 4:16pm UTC](https://discuss.elastic.co/t/snapshot-restore-failure/160542/3 "2019-01-09T16:16:32Z")

</div>

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