# Snapshot Creation without replication

**URL:** <https://discuss.elastic.co/t/snapshot-creation-without-replication/35887>\
**Category:** Elasticsearch\
**Created:** [November 30, 2015, 11:28am UTC](https://discuss.elastic.co/t/snapshot-creation-without-replication/35887 "2015-11-30T11:28:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [November 30, 2015, 11:28am UTC](https://discuss.elastic.co/t/snapshot-creation-without-replication/35887/1 "2015-11-30T11:28:03Z")

</div>

Hi Team,

I am trying to take snapshot without replication by setting **index.number\_of\_replicas as "0"**

POST /\_snapshot/backup/snapshot\_chr1  
{  
"indices": "es\_chr",  
"ignore\_unavailable": "true",  
"include\_global\_state": false,  
"index\_settings": {  
"index.number\_of\_replicas": 0  
}  
}

But I am getting an error and is shown as below,

{  
**"error": "SnapshotCreationException[[backup:snapshot\_chr1] failed to create snapshot]; nested: IOException[Stream Closed]; ",**  
\*\* "status": 500\*\*

}

Is it possible to do in elasticsearch?

Please guide us and it would be very helpful.

Thanks in Advance.

Regards,  
Ganeshbabu R

---

<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:** [November 30, 2015, 9:44pm UTC](https://discuss.elastic.co/t/snapshot-creation-without-replication/35887/2 "2015-11-30T21:44:34Z")

</div>

Setting replicas is only valid during a restore - [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#\_changing\_index\_settings\_during\_restore](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_changing_index_settings_during_restore)

---

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [December 7, 2015, 2:30pm UTC](https://discuss.elastic.co/t/snapshot-creation-without-replication/35887/3 "2015-12-07T14:30:02Z")

</div>

Thanks for your response @warkolm

---

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [March 11, 2016, 5:56am UTC](https://discuss.elastic.co/t/snapshot-creation-without-replication/35887/4 "2016-03-11T05:56:29Z")

</div>

Hi @warkolm,

We have a clarification in taking a snapshot for an index. We have an index

![](https://us1.discourse-cdn.com/elastic/original/2X/a/a5bc5a71a1eb3dca5073f9d5258b0371f9aabdeb.png)

**We need to know whether taking snapshot with 2 replicas is a good practice?**

If you see the primary size of index 1.5 TB without replica and with 2 replicas the overall size of the index would be around 4.5 TB. Suppose if I take snapshot of item index with 2 replica then the snapshot size would be in the range 4.0 to 4.5 TB

Every day we plan to take incremental snapshot and I can say changes will be updated in the item index and size of the index grows simultaneously.

Please let us know your feedback.

**Note:- How much storage space required for taking snapshot?**

Regards,  
Ganeshbabu R

---

<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:** [March 11, 2016, 10:39pm UTC](https://discuss.elastic.co/t/snapshot-creation-without-replication/35887/5 "2016-03-11T22:39:47Z")

</div>

Snapshot only applies to primaries, when we restore we recreate the replicas based off those primaries.

---

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [March 14, 2016, 11:47am UTC](https://discuss.elastic.co/t/snapshot-creation-without-replication/35887/6 "2016-03-14T11:47:49Z")

</div>

Thanks for the clarification @warkolm

---

<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:** [July 5, 2017, 11:08pm UTC](https://discuss.elastic.co/t/snapshot-creation-without-replication/35887/7 "2017-07-05T23:08:41Z")

</div>


