# Question regarding backup

**URL:** https://discuss.elastic.co/t/question-regarding-backup/316254
**Category:** Elasticsearch
**Tags:** snapshot-and-restore
**Created:** [October 10, 2022, 7:03pm UTC](https://discuss.elastic.co/t/question-regarding-backup/316254 "2022-10-10T19:03:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)
#### Post date: [October 10, 2022, 7:03pm UTC](https://discuss.elastic.co/t/question-regarding-backup/316254/1 "2022-10-10T19:03:03Z")

</div>

Supposed I am running a backup everyday for my entire cluster.  
I understand that ES does incremental backup, so the first backup would be huge, but subsequent ones would be small.  
Let's say I have one month worth of backup (30).  
If my backup has been too costly and I would like to trim say the first 20 days.  
Is this even possible? Meaning am I able to delete the earlier backup copies and still able to restore up to the past 10 days?

Hope my question makes sense.  
Will ES preserve part of the first 20 backup files even though I deleted them (through kibana) to allow me to perform full restore?

---

<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: [October 10, 2022, 9:27pm UTC](https://discuss.elastic.co/t/question-regarding-backup/316254/2 "2022-10-10T21:27:24Z")

</div>

> [@linkerc](#):
>
> Is this even possible? Meaning am I able to delete the earlier backup copies and still able to restore up to the past 10 days?

Yes.  
Elasticsearch will store any parts of the snapshot repository that it needs to restore any of the snapshots that aren't deleted. This is mentioned [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html#how-snapshots-work).

---

<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: [November 7, 2022, 9:27pm UTC](https://discuss.elastic.co/t/question-regarding-backup/316254/3 "2022-11-07T21:27:27Z")

</div>

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