# Snapshot and restore keep reporting 29 number indices

**URL:** <https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [May 12, 2021, 3:35am UTC](https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758 "2021-05-12T03:35:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [May 12, 2021, 3:35am UTC](https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758/1 "2021-05-12T03:35:59Z")

</div>

Hi all  
I have a problem with the snapshot feature.  
I have a little script that will take snapshot of an indices of my choice in a file.  
But recently when i upgrade to version 7.12 when i take the snapshot, not only the indices that i choose got snap but also some of the system indices.  
Back then on the old version i didnot have this problems, the snapshot query are the same as back on the old version.

Is there a way to fix this problems.  
Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 12, 2021, 3:39am UTC](https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758/2 "2021-05-12T03:39:52Z")

</div>

> [@lusynda](#):
>
> Is there a way to fix this problems.

Can you share the script code, or the section that does the actual snapshot request to Elasticsearch?

---

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [May 12, 2021, 3:47am UTC](https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758/3 "2021-05-12T03:47:48Z")

</div>

```auto
curl -k -X PUT -u elastic:pass "https://ip:9200/_snapshot/snapshot/$OUTPUT?wait_for_completion=true" -H 'Content-Type: application/json' -d '
	{
		"indices": "'"$OUTPUT"'",
		"ignore_unavailable": false,
		"include_global_state": true
	}
	'

```

the `$OUTPUT` var is read from a file.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 12, 2021, 4:30am UTC](https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758/4 "2021-05-12T04:30:55Z")

</div>

What's the output from `GET /_snapshot/snapshot`?

---

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [May 12, 2021, 4:42am UTC](https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758/5 "2021-05-12T04:42:46Z")

</div>

```auto
{
  "snapshot" : {
    "type" : "fs",
    "uuid" : "id",
    "settings" : {
      "compress" : "true",
      "location" : "/snapshot"
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [May 21, 2021, 7:47am UTC](https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758/6 "2021-05-21T07:47:24Z")

</div>

Has anyone figure out why this happened to me yet.  
And is there any way for me to fix this.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 21, 2021, 7:52am UTC](https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758/7 "2021-05-21T07:52:56Z")

</div>

Why are you including global state?

---

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [May 21, 2021, 7:56am UTC](https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758/8 "2021-05-21T07:56:32Z")

</div>

Actually i just copy this on the elastic guide page, i'm not really sure what it does but back then before when i use version 7.10 it is still fine.

---

<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:** [June 18, 2021, 7:57am UTC](https://discuss.elastic.co/t/snapshot-and-restore-keep-reporting-29-number-indices/272758/9 "2021-06-18T07:57:31Z")

</div>

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