# Index with ! in their name cant be selected for recovering

**URL:** <https://discuss.elastic.co/t/index-with-in-their-name-cant-be-selected-for-recovering/212308>\
**Category:** Elasticsearch\
**Created:** [December 18, 2019, 11:31am UTC](https://discuss.elastic.co/t/index-with-in-their-name-cant-be-selected-for-recovering/212308 "2019-12-18T11:31:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedy/32/59632_2.png) [@Pedy](https://discuss.elastic.co/u/Pedy)\
**Post date:** [December 18, 2019, 11:31am UTC](https://discuss.elastic.co/t/index-with-in-their-name-cant-be-selected-for-recovering/212308/1 "2019-12-18T11:31:36Z")

</div>

I have an ES cluster whith indices name like `web.analytics.data.api!monthly!2018-07_v0` and doing regular snapshots/backups

Now, when I want to restore all of them, all works pretty well. If I want to restore just a specific index however, es wont do it. The command I use:

```auto
curl -X POST "localhost:9200/_snapshot/s3_backups/20191218_060001/_restore?pretty&wait_for_completion=true" -H 'Content-Type: application/json' -d'
{
  "indices": "web.analytics.data.api!monthly!2018-07_v0",
  "index_settings": {
    "index.number_of_replicas": 0
  }
}
'

```

The result I get is:

```auto
{
  "snapshot" : {
    "snapshot" : "20191218_060001",
    "indices" : [],
    "shards" : {
      "total" : 0,
      "failed" : 0,
      "successful" : 0
    }
  }
}

```

Please note, that If I use index without `!` in its name (e.g. `.kibana` ), it works well. Any ideas of how I can solve that? Preferably without telling developers to rename the indices. The ES in question has version `1.7.3` I am aware it is EOL, but it is what I have to work with right now.

---

<div class="post-metadata">

**Author:** ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)\
**Post date:** [December 19, 2019, 7:18am UTC](https://discuss.elastic.co/t/index-with-in-their-name-cant-be-selected-for-recovering/212308/2 "2019-12-19T07:18:31Z")

</div>

What worked for me when i had a % in the Index name was to use the url encoded Version  
For you that would be  
`web.analytics.data.api%21monthly%212018-07_v0`  
(used [https://www.urlencoder.org/](https://www.urlencoder.org/) to encode it)

---

<div class="post-metadata">

**Author:** ![Pedy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedy/32/59632_2.png) [@Pedy](https://discuss.elastic.co/u/Pedy)\
**Post date:** [December 19, 2019, 7:58am UTC](https://discuss.elastic.co/t/index-with-in-their-name-cant-be-selected-for-recovering/212308/3 "2019-12-19T07:58:40Z")

</div>

Thanks for your response!  
What I read it, i though 'That must be it!' but unfortunately, the result is the same ☹

---

<div class="post-metadata">

**Author:** ![Pedy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedy/32/59632_2.png) [@Pedy](https://discuss.elastic.co/u/Pedy)\
**Post date:** [December 19, 2019, 8:20am UTC](https://discuss.elastic.co/t/index-with-in-their-name-cant-be-selected-for-recovering/212308/4 "2019-12-19T08:20:47Z")

</div>

So.. yeah, it was my bad in the end... the developer which requested it had typo in the index name. The others I tried the restoration on was picked by me so it was right and also somebody told me that exclamation mark is problematic, so i did not double check. Thanks for help

---

<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 16, 2020, 8:20am UTC](https://discuss.elastic.co/t/index-with-in-their-name-cant-be-selected-for-recovering/212308/5 "2020-01-16T08:20:47Z")

</div>

Closed on January 16, 2020, 8:20am UTC

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