# Restoring indices from S3 repository

**URL:** <https://discuss.elastic.co/t/restoring-indices-from-s3-repository/324464>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [February 1, 2023, 4:57pm UTC](https://discuss.elastic.co/t/restoring-indices-from-s3-repository/324464 "2023-02-01T16:57:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iyin](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@iyin](https://discuss.elastic.co/u/iyin)\
**Post date:** [February 1, 2023, 4:57pm UTC](https://discuss.elastic.co/t/restoring-indices-from-s3-repository/324464/1 "2023-02-01T16:57:04Z")

</div>

Hi,  
I took a snapshot of an elastic cluster (version 7.17.8) and saved it on an Amazon S3 repository before the cluster was deleted. Although, I am able to see the backup files in the s3 bucket, I have been unable to restore the indices to a new cluster I created (with the same settings and version as the old one). I registered the same s3 bucket with the data from the old cluster as the repository for the new cluster and I am still unable to see the data. Is there any documentation for this or has anyone has had this issue before and fixed it?  
Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 2, 2023, 3:30am UTC](https://discuss.elastic.co/t/restoring-indices-from-s3-repository/324464/2 "2023-02-02T03:30:45Z")

</div>

Welcome to our community! 😃

> [@iyin](#):
>
> I have been unable to restore the indices to a new cluster I created

Why not? What commands did you run? What was the response for each of them?

---

<div class="post-metadata">

**Author:** ![Ayush\_Mathur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_mathur/32/77134_2.png) [@Ayush\_Mathur](https://discuss.elastic.co/u/Ayush_Mathur)\
**Post date:** [February 2, 2023, 7:36am UTC](https://discuss.elastic.co/t/restoring-indices-from-s3-repository/324464/3 "2023-02-02T07:36:04Z")

</div>

Hello @iyin , pretty sure there is some minor mistake in your configuration for S3 repo. It should work smoothly and you should be able to connect same bucket to different clusters without any issues.

---

<div class="post-metadata">

**Author:** ![iyin](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@iyin](https://discuss.elastic.co/u/iyin)\
**Post date:** [February 2, 2023, 2:20pm UTC](https://discuss.elastic.co/t/restoring-indices-from-s3-repository/324464/4 "2023-02-02T14:20:21Z")

</div>

Thanks @Ayush_Mathur, @warkolm . I discovered the issue. I did not specify the same basepath for the old repository when I created the new repo. I have resolved it and I am able to see the snapshots.

---

<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:** [March 2, 2023, 2:21pm UTC](https://discuss.elastic.co/t/restoring-indices-from-s3-repository/324464/5 "2023-03-02T14:21:20Z")

</div>

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