# Restore index templates?

**URL:** <https://discuss.elastic.co/t/restore-index-templates/91870>\
**Category:** Elasticsearch\
**Created:** [July 5, 2017, 9:38am UTC](https://discuss.elastic.co/t/restore-index-templates/91870 "2017-07-05T09:38:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FR-TheS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fr-thes/32/17396_2.png) [@FR-TheS](https://discuss.elastic.co/u/FR-TheS)\
**Post date:** [July 5, 2017, 9:38am UTC](https://discuss.elastic.co/t/restore-index-templates/91870/1 "2017-07-05T09:38:36Z")

</div>

Hi everyone,

We have delete by error our folder that contains all data of our elasticsearch.  
I have restored it with our backup solution (TSM) and restore index on elastic from a small snapshot.  
After that, we seen the templates are missing and we had a lot (~15).  
Templates are stocked somewhere? Can we restore them?

Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 5, 2017, 9:53am UTC](https://discuss.elastic.co/t/restore-index-templates/91870/2 "2017-07-05T09:53:18Z")

</div>

Did you use `"include_global_state": true,` when you restored?

If not, try with this option.

[Doc says](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_restore):

> If cluster state is restored with include\_global\_state (defaults to false), the restored templates that don’t currently exist in the cluster are added and existing templates with the same name are replaced by the restored templates. The restored persistent settings are added to the existing persistent settings.

---

<div class="post-metadata">

**Author:** ![FR-TheS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fr-thes/32/17396_2.png) [@FR-TheS](https://discuss.elastic.co/u/FR-TheS)\
**Post date:** [July 5, 2017, 10:08am UTC](https://discuss.elastic.co/t/restore-index-templates/91870/3 "2017-07-05T10:08:28Z")

</div>

> [@dadoonet](#):
>
> include\_global\_state

Unfortunately not.  
Should we do a restore again after setting this param?

---

<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:** [August 2, 2017, 10:08am UTC](https://discuss.elastic.co/t/restore-index-templates/91870/4 "2017-08-02T10:08:33Z")

</div>

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