# Is it possible to register multiple snapshot repositories for the same S3 bucket?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-register-multiple-snapshot-repositories-for-the-same-s3-bucket/250948>\
**Category:** Elasticsearch\
**Created:** [October 5, 2020, 8:53am UTC](https://discuss.elastic.co/t/is-it-possible-to-register-multiple-snapshot-repositories-for-the-same-s3-bucket/250948 "2020-10-05T08:53:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliservetdonmez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aliservetdonmez/32/41762_2.png) [@aliservetdonmez](https://discuss.elastic.co/u/aliservetdonmez)\
**Post date:** [October 5, 2020, 8:53am UTC](https://discuss.elastic.co/t/is-it-possible-to-register-multiple-snapshot-repositories-for-the-same-s3-bucket/250948/1 "2020-10-05T08:53:12Z")

</div>

I'd like to create separate snapshot repositories for each major Elasticsearch version, however I don't necessarily want to create separate backing S3 buckets, for storage.

Is it okay/possible using the same bucket for multiple snapshot repositories or will there be any conflicts or any other issues?

---

<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:** [October 5, 2020, 9:05am UTC](https://discuss.elastic.co/t/is-it-possible-to-register-multiple-snapshot-repositories-for-the-same-s3-bucket/250948/2 "2020-10-05T09:05:59Z")

</div>

Yes, you can use the [`base_path` repository setting](https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-s3-repository.html) to set up multiple repositories under different paths in the same bucket.

---

<div class="post-metadata">

**Author:** ![aliservetdonmez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aliservetdonmez/32/41762_2.png) [@aliservetdonmez](https://discuss.elastic.co/u/aliservetdonmez)\
**Post date:** [October 5, 2020, 10:14am UTC](https://discuss.elastic.co/t/is-it-possible-to-register-multiple-snapshot-repositories-for-the-same-s3-bucket/250948/3 "2020-10-05T10:14:55Z")

</div>

Hi @DavidTurner, thanks for the quick answer!

One follow-up question I have in mind at this point is though: If a bucket was already used without the `base_path` for an existing repository, do you think is there a way to move existing snapshots to some `base_path` and then create the 2nd repository with a different `base_path`?

---

<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:** [October 5, 2020, 10:37am UTC](https://discuss.elastic.co/t/is-it-possible-to-register-multiple-snapshot-repositories-for-the-same-s3-bucket/250948/4 "2020-10-05T10:37:49Z")

</div>

No, S3 doesn't support moving objects to a new location. Best to start again with an empty bucket.

---

<div class="post-metadata">

**Author:** ![aliservetdonmez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aliservetdonmez/32/41762_2.png) [@aliservetdonmez](https://discuss.elastic.co/u/aliservetdonmez)\
**Post date:** [October 5, 2020, 10:54am UTC](https://discuss.elastic.co/t/is-it-possible-to-register-multiple-snapshot-repositories-for-the-same-s3-bucket/250948/5 "2020-10-05T10:54:44Z")

</div>

Thank you so much!

---

<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 2, 2020, 10:54am UTC](https://discuss.elastic.co/t/is-it-possible-to-register-multiple-snapshot-repositories-for-the-same-s3-bucket/250948/6 "2020-11-02T10:54:52Z")

</div>

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