# Are there any limits to the number of snapshot repositories?

**URL:** <https://discuss.elastic.co/t/are-there-any-limits-to-the-number-of-snapshot-repositories/327541>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [March 13, 2023, 10:44am UTC](https://discuss.elastic.co/t/are-there-any-limits-to-the-number-of-snapshot-repositories/327541 "2023-03-13T10:44:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Newman1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_newman1/32/118315_2.png) [@John\_Newman1](https://discuss.elastic.co/u/John_Newman1)\
**Post date:** [March 13, 2023, 10:44am UTC](https://discuss.elastic.co/t/are-there-any-limits-to-the-number-of-snapshot-repositories/327541/1 "2023-03-13T10:44:46Z")

</div>

Hi,

I'm looking to backup a lot of historical indices, for now and going into the future, we have two a day going back till 2010. For our use case we'd like to set the `base_path` per index, this means that we'll need to configure over 10k repositories. Are there any limits to the number of repositories, or is it ok to scale these?

Many thanks,  
John

---

<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:** [March 13, 2023, 1:12pm UTC](https://discuss.elastic.co/t/are-there-any-limits-to-the-number-of-snapshot-repositories/327541/2 "2023-03-13T13:12:51Z")

</div>

I'm not sure if there is a hard limit on the number of repositories as this is not well documented, or at least I couldn't find anything about it.

But having a lot of repositories means that you will have a lot of snapshots which can give you some issues, specially while listing the snapshots on Kibana.

What is the logic behind having a `base_path` per index? This looks like a nightmare to manage.

---

<div class="post-metadata">

**Author:** ![John\_Newman1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_newman1/32/118315_2.png) [@John\_Newman1](https://discuss.elastic.co/u/John_Newman1)\
**Post date:** [March 13, 2023, 1:23pm UTC](https://discuss.elastic.co/t/are-there-any-limits-to-the-number-of-snapshot-repositories/327541/3 "2023-03-13T13:23:27Z")

</div>

We have a system in place that can manage the snapshots. The reason to have a `base_path` is so we can move the snapshot to glacier as per this question [Is it possible to move a one time snapshot to Glacier?](https://discuss.elastic.co/t/is-it-possible-to-move-a-one-time-snapshot-to-glacier/327455)

Which should be ok to do providing we don't alter the files on that path. The easiest way to seperate this is to have a repository per index. Providing that there aren't any limits on the number of repositories and the snapshot api continues to work in the same way.

---

<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:** [April 10, 2023, 1:24pm UTC](https://discuss.elastic.co/t/are-there-any-limits-to-the-number-of-snapshot-repositories/327541/4 "2023-04-10T13:24:11Z")

</div>

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