# Can I take backup of indices from one cluster and restore it to another cluster

**URL:** <https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387>\
**Category:** Elasticsearch\
**Created:** [May 26, 2023, 4:35am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387 "2023-05-26T04:35:19Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunalhiremath](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kunalhiremath](https://discuss.elastic.co/u/kunalhiremath)\
**Post date:** [May 26, 2023, 4:35am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/1 "2023-05-26T04:35:19Z")

</div>

Can I take backup of indices from one cluster and restore it to another cluster by simply copying the snapshot/backup repository folder and sending it to another cluster and from there I will perform restore operation is it possible.

---

<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:** [May 26, 2023, 5:16am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/2 "2023-05-26T05:16:08Z")

</div>

Yes. That should work.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 26, 2023, 5:24am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/3 "2023-05-26T05:24:40Z")

</div>

Yes, as long as the version of Elasticsearch on the destination cluster is the same or newer than the source cluster.

---

<div class="post-metadata">

**Author:** ![kunalhiremath](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kunalhiremath](https://discuss.elastic.co/u/kunalhiremath)\
**Post date:** [May 26, 2023, 5:47am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/4 "2023-05-26T05:47:39Z")

</div>

I tried it but it did not work. I copied the indices folder that was one one system and simply moved them to one location on different system and from there I tried the restore operation. Did I miss anything here.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 26, 2023, 5:54am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/5 "2023-05-26T05:54:53Z")

</div>

Which version of Elasticsearch are you using in the two clusters?

What is the size of the two clusters?

How are you taking the snapshots? Shared filesystem?

Exactly how did you go about moving the repository?

How did you try to restore?

---

<div class="post-metadata">

**Author:** ![kunalhiremath](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kunalhiremath](https://discuss.elastic.co/u/kunalhiremath)\
**Post date:** [May 26, 2023, 6:19am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/6 "2023-05-26T06:19:21Z")

</div>

Q] Which version of Elasticsearch are you using in the two clusters?  
A] On the system where I have taken snapshot I am running 8.7.0 and on the system where I have copied the folder containing indices runs 8.3.2.

Q] What is the size of the two clusters?  
A] Approximately 15GB

Q]How are you taking the snapshots? Shared filesystem?  
A] I took snapshot by first creating a repository and registering that repository, after that I created a snapshot using \_snapshot operation and took snapshot of all indices in a snapshot. And no I have not created a share filesystem.

Q] Exactly how did you go about moving the repository?  
A] I am using traditional approach copy and paste. Copy the folder containing snapshot pasting them in another system and performing restore operation through kibana dev tools.

Q] How did you try to restore?  
A] On a different machine I created a repo regsistered it and inside that repo I pasted the copied folder and on kibana dev tools I tried \_restore operation.( I know this is not how it is done ). Please tell me a workable solution.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 26, 2023, 7:27am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/7 "2023-05-26T07:27:15Z")

</div>

> [@kunalhiremath](#):
>
> Q] Which version of Elasticsearch are you using in the two clusters?  
> A] On the system where I have taken snapshot I am running 8.7.0 and on the system where I have copied the folder containing indices runs 8.3.2.

A snapshot taken from a 8.7.0 cluster can only be restored into a cluster running Elasticsearch 8.7.0 or later.

> [@kunalhiremath](#):
>
> Q] What is the size of the two clusters?  
> A] Approximately 15GB

How many nodes do the clusters have?

---

<div class="post-metadata">

**Author:** ![kunalhiremath](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kunalhiremath](https://discuss.elastic.co/u/kunalhiremath)\
**Post date:** [May 26, 2023, 8:28am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/8 "2023-05-26T08:28:08Z")

</div>

target cluster has 1 node and source cluster also has one node

---

<div class="post-metadata">

**Author:** ![kunalhiremath](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kunalhiremath](https://discuss.elastic.co/u/kunalhiremath)\
**Post date:** [May 26, 2023, 8:28am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/9 "2023-05-26T08:28:55Z")

</div>

Is it necessary to have all the cluster on same network.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 26, 2023, 8:31am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/10 "2023-05-26T08:31:56Z")

</div>

Both nodes need to have access to the snapshot repository. If you have single node clusters you should be able to copy the data over and mount the repositoty as read-only.

---

<div class="post-metadata">

**Author:** ![kunalhiremath](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kunalhiremath](https://discuss.elastic.co/u/kunalhiremath)\
**Post date:** [May 26, 2023, 8:36am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/11 "2023-05-26T08:36:26Z")

</div>

can you direct me to any documentation regarding it. (how to configure a repo as read-only)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 26, 2023, 8:42am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/12 "2023-05-26T08:42:16Z")

</div>

> **[Snapshot and restore | Elasticsearch Guide \[8.7\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/snapshot-restore.html)**

> **[Shared file system repository | Elasticsearch Guide \[8.7\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/snapshots-filesystem-repository.html)**

---

<div class="post-metadata">

**Author:** ![kunalhiremath](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kunalhiremath](https://discuss.elastic.co/u/kunalhiremath)\
**Post date:** [May 26, 2023, 8:45am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/13 "2023-05-26T08:45:07Z")

</div>

Is it necessary to have all the cluster on the same network.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 26, 2023, 8:55am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/14 "2023-05-26T08:55:02Z")

</div>

No, not if you copy the snapshot repository over and restore locally.

---

<div class="post-metadata">

**Author:** ![kunalhiremath](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kunalhiremath](https://discuss.elastic.co/u/kunalhiremath)\
**Post date:** [May 26, 2023, 8:55am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/15 "2023-05-26T08:55:37Z")

</div>

Ok, Thank you very much

---

<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:** [June 23, 2023, 8:56am UTC](https://discuss.elastic.co/t/can-i-take-backup-of-indices-from-one-cluster-and-restore-it-to-another-cluster/334387/16 "2023-06-23T08:56:11Z")

</div>

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