# Restoring indices through a snapshot

**URL:** <https://discuss.elastic.co/t/restoring-indices-through-a-snapshot/120287>\
**Category:** Elasticsearch\
**Created:** [February 17, 2018, 5:42am UTC](https://discuss.elastic.co/t/restoring-indices-through-a-snapshot/120287 "2018-02-17T05:42:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 17, 2018, 5:42am UTC](https://discuss.elastic.co/t/restoring-indices-through-a-snapshot/120287/1 "2018-02-17T05:42:44Z")

</div>

Hi all,  
i would like to restore the indices from a snapshot by using alias name but not the indexname

```auto
POST /_snapshot/xxxxxxx/snapshot_16_02_2018/_restore
{
 "indices": "alias_name",
 "ignore_unavailable": "true",
 "include_global_state": false
}

```

this is not working because i have given alias name instead of index name in "indices":alias name  
how can i restore the data using alias name

can anyone help on this i appreaciate quick response.

Thank you.

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 17, 2018, 6:00am UTC](https://discuss.elastic.co/t/restoring-indices-through-a-snapshot/120287/2 "2018-02-17T06:00:51Z")

</div>

though if i provide this way is not working

```auto
POST /_snapshot/xxxxxxx/snapshot_16_02_2018/_restore
{
 "aliases": "alias_name",
 "ignore_unavailable": "true",
 "include_global_state": false
}

```

i have replaced indices api with aliases

please help on this

---

<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:** [March 17, 2018, 6:00am UTC](https://discuss.elastic.co/t/restoring-indices-through-a-snapshot/120287/3 "2018-03-17T06:00:54Z")

</div>

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