# Regarding Snapshots

**URL:** <https://discuss.elastic.co/t/regarding-snapshots/305595>\
**Category:** Elasticsearch\
**Created:** [May 25, 2022, 10:47am UTC](https://discuss.elastic.co/t/regarding-snapshots/305595 "2022-05-25T10:47:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Post date:** [May 25, 2022, 10:47am UTC](https://discuss.elastic.co/t/regarding-snapshots/305595/1 "2022-05-25T10:47:45Z")

</div>

Hi,  
Is it possible, at snapshot time, to snapshot only primary shards?

Thx  
D

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 25, 2022, 10:55am UTC](https://discuss.elastic.co/t/regarding-snapshots/305595/2 "2022-05-25T10:55:59Z")

</div>

Yes, indeed snapshotting the primary shards is how it works today.

---

<div class="post-metadata">

**Author:** ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Post date:** [May 25, 2022, 11:19am UTC](https://discuss.elastic.co/t/regarding-snapshots/305595/3 "2022-05-25T11:19:25Z")

</div>

When we restore I see that both primaries and replicas are restored. How do I prevent the replicas being rebuilt?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 25, 2022, 12:32pm UTC](https://discuss.elastic.co/t/regarding-snapshots/305595/4 "2022-05-25T12:32:13Z")

</div>

Set `index.number_of_replicas` to `0`, either during the restore by using the `index_settings` parameter of the [restore API](https://www.elastic.co/guide/en/elasticsearch/reference/current/restore-snapshot-api.html) or afterwards using the [update index settings API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html).

---

<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 22, 2022, 12:32pm UTC](https://discuss.elastic.co/t/regarding-snapshots/305595/5 "2022-06-22T12:32:54Z")

</div>

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