# Query about deleting snapshots

**URL:** <https://discuss.elastic.co/t/query-about-deleting-snapshots/264229>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [February 13, 2021, 8:22pm UTC](https://discuss.elastic.co/t/query-about-deleting-snapshots/264229 "2021-02-13T20:22:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Russell\_Fulton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russell_fulton/32/62888_2.png) [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Post date:** [February 13, 2021, 8:22pm UTC](https://discuss.elastic.co/t/query-about-deleting-snapshots/264229/1 "2021-02-13T20:22:20Z")

</div>

I know that snapshots are incremental, but what I don't understand is what happens when you delete a snapshot? I assume that deleting an earlier snapshot will remove all indexes that have not been modified since it was taken from the backup??

My normal method of dealing with file backup is to maintain a daily, monthly, and yearly series. When you do a (successful) monthly you the restart the daily one, likewise for the year.

This cuts down the amount of work restoring in the case of disaster.

So I should have 3 repositories daily, monthly and yearly?

---

<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:** [February 13, 2021, 8:51pm UTC](https://discuss.elastic.co/t/query-about-deleting-snapshots/264229/2 "2021-02-13T20:51:24Z")

</div>

Snapshots are incremental behind the scene but you can think of a snapshot as a full backup.

Removing a snapshot has no impact on other snapshots.

---

<div class="post-metadata">

**Author:** ![Russell\_Fulton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russell_fulton/32/62888_2.png) [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Post date:** [February 13, 2021, 9:06pm UTC](https://discuss.elastic.co/t/query-about-deleting-snapshots/264229/3 "2021-02-13T21:06:17Z")

</div>

Thanks David

so I don't need to go to elaborate length -- just do daily snapshots and keep the most recent few for redundancy. Correct?

what is the best way to archive data that I don't want immediate access to (I am using ILM).

---

<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:** [February 13, 2021, 9:50pm UTC](https://discuss.elastic.co/t/query-about-deleting-snapshots/264229/4 "2021-02-13T21:50:36Z")

</div>

Yes.

I'd recommend looking at SLM (Snapshot Lifecycle Management) feature.

---

<div class="post-metadata">

**Author:** ![Russell\_Fulton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russell_fulton/32/62888_2.png) [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Post date:** [February 13, 2021, 10:03pm UTC](https://discuss.elastic.co/t/query-about-deleting-snapshots/264229/5 "2021-02-13T22:03:41Z")

</div>

Good! I have that set up in the snapshot policy - kibana. It is somewhat over engineered at the moment!

Thanks Again

---

<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:** [February 14, 2021, 5:54pm UTC](https://discuss.elastic.co/t/query-about-deleting-snapshots/264229/6 "2021-02-14T17:54:12Z")

</div>

Just letting @dadoonet know that we spotted this question coming up quite a bit so we recently clarified it [in the manual](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html):

> Snapshots are also logically independent from each other, even within a single repository: deleting a snapshot does not affect the integrity of any other snapshot.

Also:

> [@Russell\_Fulton](#):
>
> what is the best way to archive data that I don't want immediate access to (I am using ILM).

There isn't really a way to archive parts of a repository (e.g. less-recent snapshots) - a repository is basically a monolithic pile of data. It's something that comes up from time to time, and more so recently now that snapshots can now be made [searchable](https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots.html). Out of interest, could you describe how you'd want to use such a feature?

---

<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:** [March 14, 2021, 5:55pm UTC](https://discuss.elastic.co/t/query-about-deleting-snapshots/264229/7 "2021-03-14T17:55:08Z")

</div>

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