# After Deleting the older snapshots, it deleted first full snapshot

**URL:** <https://discuss.elastic.co/t/after-deleting-the-older-snapshots-it-deleted-first-full-snapshot/102397>\
**Category:** Elasticsearch\
**Created:** [October 2, 2017, 3:47am UTC](https://discuss.elastic.co/t/after-deleting-the-older-snapshots-it-deleted-first-full-snapshot/102397 "2017-10-02T03:47:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishu.kolki](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@vishu.kolki](https://discuss.elastic.co/u/vishu.kolki)\
**Post date:** [October 2, 2017, 3:47am UTC](https://discuss.elastic.co/t/after-deleting-the-older-snapshots-it-deleted-first-full-snapshot/102397/1 "2017-10-02T03:47:43Z")

</div>

Hi,

I have about 10 Older snapshots for Elasticsearch. If i delete the 8 older snapshot leaving current 2 of them. It is deleting the full snapshot which was created at first.  
So if i take now another snapshot, will it be incremental or full snapshot?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 2, 2017, 6:44am UTC](https://discuss.elastic.co/t/after-deleting-the-older-snapshots-it-deleted-first-full-snapshot/102397/2 "2017-10-02T06:44:01Z")

</div>

You need to think about every single snapshot as a full backup. Which means that you can remove whatever snapshots you wish, it won't have any impact on the other ones which integrity is still guaranteed.

Behind the scene, snapshots are incremental but this is an implementation detail.

> So if i take now another snapshot, will it be incremental or full snapshot?

Consider it as a full snapshot again. It might end up copying lot of data depending on what happened on a segment level between the last available snapshot and this new one.

HTH

---

<div class="post-metadata">

**Author:** ![vishu.kolki](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@vishu.kolki](https://discuss.elastic.co/u/vishu.kolki)\
**Post date:** [October 3, 2017, 4:09am UTC](https://discuss.elastic.co/t/after-deleting-the-older-snapshots-it-deleted-first-full-snapshot/102397/3 "2017-10-03T04:09:20Z")

</div>

Hi David,

Thanks for the information.

If we want to restore the ES from latest snapshot, we just have to give the name of recent snapshot name in the restore curl command. Am i right? If wrong please correct me.

Thankyou

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 3, 2017, 5:04am UTC](https://discuss.elastic.co/t/after-deleting-the-older-snapshots-it-deleted-first-full-snapshot/102397/4 "2017-10-03T05:04:06Z")

</div>

That’s correct.

---

<div class="post-metadata">

**Author:** ![vishu.kolki](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@vishu.kolki](https://discuss.elastic.co/u/vishu.kolki)\
**Post date:** [October 3, 2017, 6:06am UTC](https://discuss.elastic.co/t/after-deleting-the-older-snapshots-it-deleted-first-full-snapshot/102397/5 "2017-10-03T06:06:54Z")

</div>

Thanks David.

What is the difference between "active\_primary\_shards" and "active\_shards".

```
docker exec -it es-node-2 curl localhost:9200/_cluster/health?pretty
{
  "cluster_name" : "elasticsearch",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 3,
  "number_of_data_nodes" : 3,
  "active_primary_shards" : 282,
  "active_shards" : 396,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0
}

```

Since whenever i take snapshot it shows

```
"state" : "SUCCESS",
"start_time" : "2017-10-03T04:52:48.586Z",
"start_time_in_millis" : 1507006368586,
"end_time" : "2017-10-03T04:52:54.121Z",
"end_time_in_millis" : 1507006374121,
"duration_in_millis" : 5535,
"failures" : [],
"shards" : {
"total" : 282,
"failed" : 0,
"successful" : 282
}
}
}

```

So has it taken the full backup? Or is it taking only "active\_primary\_shards" backup?

Thankyou

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 3, 2017, 6:58am UTC](https://discuss.elastic.co/t/after-deleting-the-older-snapshots-it-deleted-first-full-snapshot/102397/6 "2017-10-03T06:58:03Z")

</div>

> What is the difference between "active\_primary\_shards" and "active\_shards".

You have primaries and replicas.

active\_shards = primaries + replicas.  
active\_primary\_shards = primaries.

> Is it taking only "active\_primary\_shards" backup?

Yes

> So has it taken the full backup?

Yes. You don't want to backup copies of shards as you already have a copy of the primaries.

I mean: everything is ok here.

---

<div class="post-metadata">

**Author:** ![vishu.kolki](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@vishu.kolki](https://discuss.elastic.co/u/vishu.kolki)\
**Post date:** [October 3, 2017, 7:10am UTC](https://discuss.elastic.co/t/after-deleting-the-older-snapshots-it-deleted-first-full-snapshot/102397/7 "2017-10-03T07:10:06Z")

</div>

Thanks a lot David, for your help and information.

---

<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:** [October 31, 2017, 7:10am UTC](https://discuss.elastic.co/t/after-deleting-the-older-snapshots-it-deleted-first-full-snapshot/102397/8 "2017-10-31T07:10:20Z")

</div>

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