# How to change S3 base\_path for snapshot repos

**URL:** <https://discuss.elastic.co/t/how-to-change-s3-base-path-for-snapshot-repos/151544>\
**Category:** Elasticsearch\
**Created:** [October 9, 2018, 2:36am UTC](https://discuss.elastic.co/t/how-to-change-s3-base-path-for-snapshot-repos/151544 "2018-10-09T02:36:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raywtsang](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@raywtsang](https://discuss.elastic.co/u/raywtsang)\
**Post date:** [October 9, 2018, 2:36am UTC](https://discuss.elastic.co/t/how-to-change-s3-base-path-for-snapshot-repos/151544/1 "2018-10-09T02:36:14Z")

</div>

I'm having some difficulty changing the base\_path for a snapshot repository and having the change persist after a snapshot has been saved.

I have removed the repo using the `DELETE /_snapshot/<my_repo>` and recreating with a new path using `PUT /_snapshot/<my_repo>`. Issuing `GET` will return the snapshot repo info with the correct `base_path` and `GET /_snapshot/<my_repo>/_all` shows the correct snapshots from that path. However, once a scheduled snapshot has been saved, the snapshot repo reverts back to the previous repo.

How can I point the repo to a new path and have it persist?

Thanks,

---

<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 6, 2018, 2:36am UTC](https://discuss.elastic.co/t/how-to-change-s3-base-path-for-snapshot-repos/151544/2 "2018-11-06T02:36:15Z")

</div>

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