# Restoring elasticsearch snapshot into another cluster on cloud

**URL:** https://discuss.elastic.co/t/restoring-elasticsearch-snapshot-into-another-cluster-on-cloud/310872
**Category:** Elasticsearch
**Created:** [July 28, 2022, 1:45pm UTC](https://discuss.elastic.co/t/restoring-elasticsearch-snapshot-into-another-cluster-on-cloud/310872 "2022-07-28T13:45:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![somkhil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/somkhil/32/108980_2.png) [@somkhil](https://discuss.elastic.co/u/somkhil)
#### Post date: [July 28, 2022, 1:45pm UTC](https://discuss.elastic.co/t/restoring-elasticsearch-snapshot-into-another-cluster-on-cloud/310872/1 "2022-07-28T13:45:01Z")

</div>

HI  
As part of the elasticsearch cloud migration, I have taken snapshot of current on-premise elasticsearch indices into cloud object storage (IBM COS).

I need to restore this snapshot into completely new elasticsearch instance on public cloud.  
I could create a new repo pointing to COS snapshot, But cannot restore as snapshot was actually created from another cluster.

Any inputs/pointers on how to restore pls ??

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: [July 28, 2022, 11:12pm UTC](https://discuss.elastic.co/t/restoring-elasticsearch-snapshot-into-another-cluster-on-cloud/310872/2 "2022-07-28T23:12:47Z")

</div>

> [@somkhil](#):
>
> I could create a new repo pointing to COS snapshot, But cannot restore as snapshot was actually created from another cluster.

It'd be useful if you exactly shared what you did, what you are trying, and what doesn't work - the requests you are using, and the responses.errors you are receiving.

---

<div class="post-metadata">

### Author: ![somkhil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/somkhil/32/108980_2.png) [@somkhil](https://discuss.elastic.co/u/somkhil)
#### Post date: [July 29, 2022, 3:46am UTC](https://discuss.elastic.co/t/restoring-elasticsearch-snapshot-into-another-cluster-on-cloud/310872/3 "2022-07-29T03:46:13Z")

</div>

elasticsearch on premise cluster - cluster1

step1 - create repo pointing to s3-storage (or similar object storage on cloud)  
step2 - create snapshot of the index  
step3 - restore index from snapshot on the same on premise cluster

Above steps work fine on same cluster.

Now as we have set up new cluster ( let's say - cluster2) on public cloud, need to copy index data from cluster1 to cluster2.

- Reindex doesn't work due to firewall issues.
- Can snapshot taken above for cluster1 be used for restoring index on new cluster.

I am using standard \_snapshot and \_restore endpoints .

---

<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: [August 26, 2022, 3:46am UTC](https://discuss.elastic.co/t/restoring-elasticsearch-snapshot-into-another-cluster-on-cloud/310872/4 "2022-08-26T03:46:35Z")

</div>

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