# Snapshot issue

**URL:** <https://discuss.elastic.co/t/snapshot-issue/374361>\
**Category:** Elastic Search\
**Tags:** snapshot-and-restore\
**Created:** [February 11, 2025, 12:18pm UTC](https://discuss.elastic.co/t/snapshot-issue/374361 "2025-02-11T12:18:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahere37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sahere37](https://discuss.elastic.co/u/sahere37)\
**Post date:** [February 11, 2025, 12:18pm UTC](https://discuss.elastic.co/t/snapshot-issue/374361/1 "2025-02-11T12:18:26Z")

</div>

hi all

I wrote a policy to take a snapshot daily and put the data in the defined path.repo. when I check the list of the taken snapshots using below api, I can see the list of snapshots based on the defined policy's naming method, therefore it is easy to find the desire snapshot .

> GET /\_snapshot/my\_fs\_backup/\_all

but when it comes to take a backup from the path of repository to another storage ( tape for example) , we will face the problem, because naming in the repository folder is quite different from what we see in snapshot list in dev tools. Indeed, it is desired to take a backup from repository folder using a scheduled job based on the date whereas there is no option to set dynamically path.repo based on the date. Is there any way to resolve this issue?  
Any help well be so appreciated

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 11, 2025, 12:35pm UTC](https://discuss.elastic.co/t/snapshot-issue/374361/2 "2025-02-11T12:35:21Z")

</div>

If you take a backup of the path of the repository and want to restore it, you would need to add a new repository in Elasticsearch pointing to this path.

Also, while making a backup of a repository you need to follow these [instructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-register-repository.html#snapshots-repository-backup) to avoid corrupting it.

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [February 11, 2025, 1:00pm UTC](https://discuss.elastic.co/t/snapshot-issue/374361/3 "2025-02-11T13:00:28Z")

</div>

I'm reading @sahere37 Q a bit differently. Perhaps he/she can clarify.

It's also not completely clear what's being snapshot-ed to the repo. Each day a different index is snapshot-ed? or a data stream? Or the full cluster?

My reading is that they don't really know which files in the repo (filesystem) are from which snapshot. Which is right of course, it's far from obvious. So they are unable to make a (eg tape) backup of "this specific snapshot" or indeed restore "that specific snapshot" from tape. Maybe for perceived speed of recovery (from tape) reasons.

Maybe I read the Q wrong of course.

---

<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 11, 2025, 1:00pm UTC](https://discuss.elastic.co/t/snapshot-issue/374361/4 "2025-03-11T13:00:43Z")

</div>

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