# Update s3 snapshots base\_path for a cluster in ECE (v1.1)

**URL:** <https://discuss.elastic.co/t/update-s3-snapshots-base-path-for-a-cluster-in-ece-v1-1/151934>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [October 10, 2018, 8:24pm UTC](https://discuss.elastic.co/t/update-s3-snapshots-base-path-for-a-cluster-in-ece-v1-1/151934 "2018-10-10T20:24:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simon_khan/32/109044_2.png) [@Simon\_Khan](https://discuss.elastic.co/u/Simon_Khan)\
**Post date:** [October 10, 2018, 8:24pm UTC](https://discuss.elastic.co/t/update-s3-snapshots-base-path-for-a-cluster-in-ece-v1-1/151934/1 "2018-10-10T20:24:51Z")

</div>

From what I understand, ECE automates creating snapshots by creating a `found-snapshots` repository which stores the snapshots of all the clusters in a folder described by their cluster id.

And so for Cluster A, its settings would look like

```auto
GET <cluster A endpoint>/_snapshot/found_snapshots
{
    "type": "s3",
    "settings": {
      "bucket": "<s3_bucket_name>",
      "client": "mys3client",
      "secret_key": "<s3_secret_key>", 
      "base_path": "snapshots/<Cluster A ID>",
      "access_key": "<s3_access_key>",
    }
}

```

Is there any way we can update the `base_path` for cluster A to store snapshots in a folder with a different name instead of its id?

Issuing a `PUT` command with an updated base path seems to work until the snapshots are fired at its 30 minute interval which causes the `base_path` to revert back to the cluster id.

Is there a better way to change the base path of a cluster's snapshot location permanently so it is not referred by its cluster id?

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [October 11, 2018, 8:17am UTC](https://discuss.elastic.co/t/update-s3-snapshots-base-path-for-a-cluster-in-ece-v1-1/151934/2 "2018-10-11T08:17:30Z")

</div>

@Simon_Khan

Currently if using the shared repo feature in the ECE UI then it isn't possible to override the base path, that's a limitation in the code

I believe it is possible in the advanced page to replace the pointer in the cluster data under advanced, eg replace:

```auto
"snapshot": {
   "repository": {
      "config": {
        "shapshot_config_type": "reference",
        "repository_id": "banana"
      }

```

with:

```auto
"snapshot": {
   "repository": {
      "config": {
        "type": "s3",
        "settings": {
           "bucket": "<s3_bucket_name>",
           //etc

```

That said it's not ideal because a) requires messing about with only-semi-documented advanced cluster data (I believe the 2.x v1 API has better model support but, the UI support is still JSON editing), b) requires pasting access keys in the cluster data etc

Alex

---

<div class="post-metadata">

**Author:** ![Simon\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simon_khan/32/109044_2.png) [@Simon\_Khan](https://discuss.elastic.co/u/Simon_Khan)\
**Post date:** [October 15, 2018, 12:57am UTC](https://discuss.elastic.co/t/update-s3-snapshots-base-path-for-a-cluster-in-ece-v1-1/151934/3 "2018-10-15T00:57:32Z")

</div>

Thank you for your reply @Alex_Piggott

I see, that makes sense. We've tried this out and it seems to be working so far.

Thank you again for your help, I really appreciate it!

-Simon

---

<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:** [October 29, 2018, 12:57am UTC](https://discuss.elastic.co/t/update-s3-snapshots-base-path-for-a-cluster-in-ece-v1-1/151934/4 "2018-10-29T00:57:35Z")

</div>

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