# Data backup from prod elastic cluster to backup elastic cluster periodically

**URL:** <https://discuss.elastic.co/t/data-backup-from-prod-elastic-cluster-to-backup-elastic-cluster-periodically/276855>\
**Category:** Elasticsearch\
**Created:** [June 24, 2021, 12:19am UTC](https://discuss.elastic.co/t/data-backup-from-prod-elastic-cluster-to-backup-elastic-cluster-periodically/276855 "2021-06-24T00:19:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jebuna\_hau](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jebuna_hau/32/87201_2.png) [@jebuna\_hau](https://discuss.elastic.co/u/jebuna_hau)\
**Post date:** [June 24, 2021, 12:19am UTC](https://discuss.elastic.co/t/data-backup-from-prod-elastic-cluster-to-backup-elastic-cluster-periodically/276855/1 "2021-06-24T00:19:03Z")

</div>

Hello,  
I am currently trying to find the best way to keep two elastic clusters in sync. I tried it by fetching the modified data from the main cluster and update/insert to the backup cluster. The idea is to keep the two clusters in sync so that either of them can be main during failure. I am thinking taking snapshots from main and restoring them in the back cluster would do better job without fetching huge amount of modified data.  
But I am not sure if two clusters can use the same snapshot repository to read and write data to.

Could you provide me insight into any better/best way to keep two elastic clusters in sync from a java application?

Thank you.

---

<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:** [June 24, 2021, 12:31am UTC](https://discuss.elastic.co/t/data-backup-from-prod-elastic-cluster-to-backup-elastic-cluster-periodically/276855/2 "2021-06-24T00:31:36Z")

</div>

Welcome to our community! 😃

You can use cross cluster replication to do just this - [Cross-cluster replication | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/xpack-ccr.html)  
Otherwise there's more here [Set up a cluster for high availability | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/high-availability.html)

---

<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:** [July 22, 2021, 12:32am UTC](https://discuss.elastic.co/t/data-backup-from-prod-elastic-cluster-to-backup-elastic-cluster-periodically/276855/3 "2021-07-22T00:32:30Z")

</div>

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