# ElasticSearch Snapshots only Storing 5 Documents

**URL:** <https://discuss.elastic.co/t/elasticsearch-snapshots-only-storing-5-documents/114750>\
**Category:** Elasticsearch\
**Created:** [January 9, 2018, 8:02pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-only-storing-5-documents/114750 "2018-01-09T20:02:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrbushid0](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@mrbushid0](https://discuss.elastic.co/u/mrbushid0)\
**Post date:** [January 9, 2018, 8:02pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-only-storing-5-documents/114750/1 "2018-01-09T20:02:21Z")

</div>

Hi guys,

Elasticsearch version: 5.6.3  
OS: Windows 10 Home

If I run:

```
$ curl -XPUT 'localhost:9200/_snapshot/my_backup/test?wait_for_completion=true&pretty' -H 'Content-Type: application/json' -d'
{
  "indices": "properties",
  "ignore_unavailable": true,
  "include_global_state": false
}'

```

The result is:

```
  "snapshot" : {
    "snapshot" : "test",
    "uuid" : "rM7Q3GUrRlC-PBPEl0vetg",
    "version_id" : 5060399,
    "version" : "5.6.3",
    "indices" : [
      "properties"
    ],
    "state" : "SUCCESS",
    "start_time" : "2018-01-09T19:54:58.031Z",
    "start_time_in_millis" : 1515527698031,
    "end_time" : "2018-01-09T19:54:58.104Z",
    "end_time_in_millis" : 1515527698104,
    "duration_in_millis" : 73,
    "failures" : [],
    "shards" : {
      "total" : 5,
      "failed" : 0,
      "successful" : 5
    }
  }
}

```

This index has over 20,000 documents, I have deleted all other snapshots and I am getting no errors in the elasticsearch.log, but every snapshot only stores 5 documents.

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![iti](https://avatars.discourse-cdn.com/v4/letter/i/b19c9b/32.png) [@iti](https://discuss.elastic.co/u/iti)\
**Post date:** [January 10, 2018, 11:49pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-only-storing-5-documents/114750/2 "2018-01-10T23:49:47Z")

</div>

You meant 5 documents as 5 in  
"shards" : {  
"total" : 5,  
"failed" : 0,  
"successful" : 5  
}  
?  
Restore the snapshot and you should see you have them all. 5 is 5 shards not 5 documents. Hopefully I did not misunderstand.  
Cheers

---

<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:** [February 7, 2018, 11:49pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-only-storing-5-documents/114750/3 "2018-02-07T23:49:54Z")

</div>

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