# Repository-s3 bucket sub-folder for snapshots

**URL:** <https://discuss.elastic.co/t/repository-s3-bucket-sub-folder-for-snapshots/129754>\
**Category:** Elasticsearch\
**Created:** [April 26, 2018, 11:44pm UTC](https://discuss.elastic.co/t/repository-s3-bucket-sub-folder-for-snapshots/129754 "2018-04-26T23:44:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![the.tyler.farr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/the.tyler.farr/32/30089_2.png) [@the.tyler.farr](https://discuss.elastic.co/u/the.tyler.farr)\
**Post date:** [April 26, 2018, 11:44pm UTC](https://discuss.elastic.co/t/repository-s3-bucket-sub-folder-for-snapshots/129754/1 "2018-04-26T23:44:01Z")

</div>

Is it possible to tell Elasticsearch to snapshot an index into a sub-folder of an s3 bucket? Or, is the only way to logically separate different indices to create separate s3 buckets for each grouping/type of index?

---

<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:** [April 27, 2018, 2:03am UTC](https://discuss.elastic.co/t/repository-s3-bucket-sub-folder-for-snapshots/129754/2 "2018-04-27T02:03:44Z")

</div>

Have a look at `base_path`

[https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-s3-repository.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-s3-repository.html)

---

<div class="post-metadata">

**Author:** ![the.tyler.farr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/the.tyler.farr/32/30089_2.png) [@the.tyler.farr](https://discuss.elastic.co/u/the.tyler.farr)\
**Post date:** [April 27, 2018, 3:06am UTC](https://discuss.elastic.co/t/repository-s3-bucket-sub-folder-for-snapshots/129754/3 "2018-04-27T03:06:22Z")

</div>

Wow, I don't know how I missed that right there in the documentation. Thanks @dadoonet!

---

<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:** [May 25, 2018, 3:06am UTC](https://discuss.elastic.co/t/repository-s3-bucket-sub-folder-for-snapshots/129754/4 "2018-05-25T03:06:26Z")

</div>

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