# Snapshot and restore segments

**URL:** <https://discuss.elastic.co/t/snapshot-and-restore-segments/126064>\
**Category:** Elasticsearch\
**Created:** [March 29, 2018, 9:47am UTC](https://discuss.elastic.co/t/snapshot-and-restore-segments/126064 "2018-03-29T09:47:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurentiusoica](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/laurentiusoica/32/27342_2.png) [@laurentiusoica](https://discuss.elastic.co/u/laurentiusoica)\
**Post date:** [March 29, 2018, 9:47am UTC](https://discuss.elastic.co/t/snapshot-and-restore-segments/126064/1 "2018-03-29T09:47:48Z")

</div>

Hello,

I have a few questions regarding the ES snapshot feature. I am not able to find a proper answer in the ES documentation so maybe someone could shed some light:

- does a snapshot include uncommitted segments as well ?
- does a snapshot includes non-searchable segments as well ?
- does a snapshot include the segments available at snapshot start time only or segments created during snapshot as well ?
- for a restore over an existing cluster what happens to the data indexed after the snapshot was taken, Is it removed or a merge happens between snapshot data and cluster data ?

Thanks

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [April 6, 2018, 9:30am UTC](https://discuss.elastic.co/t/snapshot-and-restore-segments/126064/2 "2018-04-06T09:30:12Z")

</div>

> does a snapshot include uncommitted segments as well ?

starting a snapshot will do a flush (i.e. Lucene commit), so you'll only get committed segments.

> does a snapshot includes non-searchable segments as well ?

yes

> does a snapshot include the segments available at snapshot start time only or segments created during snapshot as well ?

it includes the segments available at the time that the snapshot starts on the shard

> for a restore over an existing cluster what happens to the data indexed after the snapshot was taken, Is it removed or a merge happens between snapshot data and cluster data ?

It is removed, i.e, we restore exactly what's in the snapshot.

---

<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 4, 2018, 9:30am UTC](https://discuss.elastic.co/t/snapshot-and-restore-segments/126064/3 "2018-05-04T09:30:20Z")

</div>

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