# S3 snapshot repository

**URL:** <https://discuss.elastic.co/t/s3-snapshot-repository/114185>\
**Category:** Elasticsearch\
**Created:** [January 4, 2018, 10:58pm UTC](https://discuss.elastic.co/t/s3-snapshot-repository/114185 "2018-01-04T22:58:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpendela](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@rpendela](https://discuss.elastic.co/u/rpendela)\
**Post date:** [January 4, 2018, 10:58pm UTC](https://discuss.elastic.co/t/s3-snapshot-repository/114185/1 "2018-01-04T22:58:25Z")

</div>

Hello Community,

I am trying to take the snapshots of indices and send them to S3, I installed S3 plugin and Curator.

I am running ELK stack using docker compose, trying to create S3 as a repository but getting this error.

I tried with API keys and IAM role,

 ![09 PM](https://us1.discourse-cdn.com/elastic/original/3X/6/8/68763c2213141601915cff6d7f32016f57286fff.png)

I don't know what I am missing, why it is saying insecure and where to change the property "allow\_insecure\_settings" and obviously it is not secure i think.

---

<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:** [January 5, 2018, 3:19am UTC](https://discuss.elastic.co/t/s3-snapshot-repository/114185/2 "2018-01-05T03:19:23Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

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

---

<div class="post-metadata">

**Author:** ![rpendela](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@rpendela](https://discuss.elastic.co/u/rpendela)\
**Post date:** [January 5, 2018, 10:22pm UTC](https://discuss.elastic.co/t/s3-snapshot-repository/114185/3 "2018-01-05T22:22:01Z")

</div>

Ok somehow I am able to create the repository and take the backup to S3. I created the snapshot with with below curator\_cli command

**curator\_cli --http\_auth user:pass --host ip address --port 9200 snapshot --repository --name elk-%Y%m%d%H**

but in S3 i got the files like this  
`Indices` (it is a folder and inside it has individual folders for each index)  
`Incompatible snapshots`  
`index-0`  
`index.latest`  
`meta-T2h7-iGxRRib8hpQhaGwnA.dat`  
`snap-T2h7-iGxRRib8hpQhaGwnA.dat`

how can I get the folder name as "elk-date" instead of indices and index name like "paloalto-20170105"  
inside the "elk-data" folder.

1. Also, I am testing restore snapshot option, I deleted the snapshot and trying to restore but getting the error as **snapshot\_missing** (is that mean I can only restore indices in snapshot but not snapshot if I delete that?)  
I followed the document [https://www.elastic.co/guide/en/elasticsearch/reference/6.0/modules-snapshots.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/modules-snapshots.html)

---

<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:** [January 6, 2018, 4:24pm UTC](https://discuss.elastic.co/t/s3-snapshot-repository/114185/4 "2018-01-06T16:24:22Z")

</div>

> how can I get the folder name as "elk-date" instead of indices and index name like "paloalto-20170105" inside the "elk-data" folder.

Why do you want to do that? I mean that snapshots are only meant to be read by the restore API. You should not try to do anything manually.

> I deleted the snapshot and trying to restore

You can't restore something you deleted. It's unclear to me what you are trying to do here.

Anyway, if you have questions like this, please provide all the commands you sent to elasticsearch so it's easier to follow what you are doing.

---

<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:** [February 3, 2018, 4:24pm UTC](https://discuss.elastic.co/t/s3-snapshot-repository/114185/5 "2018-02-03T16:24:37Z")

</div>

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