# Elasticsearch 2.2 snapshot with exclude indices

**URL:** <https://discuss.elastic.co/t/elasticsearch-2-2-snapshot-with-exclude-indices/179366>\
**Category:** Elasticsearch\
**Created:** [May 2, 2019, 12:34pm UTC](https://discuss.elastic.co/t/elasticsearch-2-2-snapshot-with-exclude-indices/179366 "2019-05-02T12:34:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronny\_Gorner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronny_gorner/32/45422_2.png) [@Ronny\_Gorner](https://discuss.elastic.co/u/Ronny_Gorner)\
**Post date:** [May 2, 2019, 12:34pm UTC](https://discuss.elastic.co/t/elasticsearch-2-2-snapshot-with-exclude-indices/179366/1 "2019-05-02T12:34:59Z")

</div>

Hi,  
I am getting nearby crazy 🙂 I want to snapshot and to exlude my .kibana & .marvel indeces like this:

curl -X PUT "localhost:9200/\_snapshot/backup/init" -H 'Content-Type: application/json' -d'  
{  
"indices": "_,-.kibana,-.marvel_",  
"ignore\_unavailable": true,  
"include\_global\_state": false  
}  
'

It does not work, kibana and marvel things are still in the snapshot. I tried with:  
-.kibana  
-_kibana_  
-kibana  
-.kibana

Nothing worked.  
Can anyone help me? Thanks in advance.  
Best,  
Ronny

---

<div class="post-metadata">

**Author:** ![Ronny\_Gorner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronny_gorner/32/45422_2.png) [@Ronny\_Gorner](https://discuss.elastic.co/u/Ronny_Gorner)\
**Post date:** [May 2, 2019, 3:56pm UTC](https://discuss.elastic.co/t/elasticsearch-2-2-snapshot-with-exclude-indices/179366/2 "2019-05-02T15:56:57Z")

</div>

This is a bug in 2.2 with 2.4 it is working

---

<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:** [May 30, 2019, 3:57pm UTC](https://discuss.elastic.co/t/elasticsearch-2-2-snapshot-with-exclude-indices/179366/3 "2019-05-30T15:57:02Z")

</div>

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