# Data migration between elastic clusters

**URL:** <https://discuss.elastic.co/t/data-migration-between-elastic-clusters/281363>\
**Category:** Elasticsearch\
**Tags:** migration\
**Created:** [August 13, 2021, 1:30pm UTC](https://discuss.elastic.co/t/data-migration-between-elastic-clusters/281363 "2021-08-13T13:30:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shanavas/32/123224_2.png) [@shanavas](https://discuss.elastic.co/u/shanavas)\
**Post date:** [August 13, 2021, 1:30pm UTC](https://discuss.elastic.co/t/data-migration-between-elastic-clusters/281363/1 "2021-08-13T13:30:48Z")

</div>

We have two es clusters, one running on premise and another one on the cloud.  
The one premise one can't store data for more than a week.  
The cloud cluster retains the data for a longer duration (a few months).  
So the indexed documents need to be moved to the cloud with in an hour.  
The size of the data for an hour is a few Mbs.

What would the best approach to move the data to the cloud ?  
I went through CCR - but doesn't look like a good candidate for this use case.  
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:** [August 17, 2021, 1:12am UTC](https://discuss.elastic.co/t/data-migration-between-elastic-clusters/281363/2 "2021-08-17T01:12:44Z")

</div>

Welcome to our community! 😃

> [@shanavas](#):
>
> I went through CCR - but doesn't look like a good candidate for this use case.

Why is that?

---

<div class="post-metadata">

**Author:** ![shanavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shanavas/32/123224_2.png) [@shanavas](https://discuss.elastic.co/u/shanavas)\
**Post date:** [August 17, 2021, 4:27am UTC](https://discuss.elastic.co/t/data-migration-between-elastic-clusters/281363/3 "2021-08-17T04:27:05Z")

</div>

Thanks @warkolm

AFAIK, with CCR, data will be deleted from the follower when the data is deleted in the leader. I need to keep data in the leader for say 1 week where as in the follower for say 1 month.

In shorts, I just need to replicate writes - or skip deletes. I don't think CCR allows that.

---

<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:** [August 17, 2021, 4:28am UTC](https://discuss.elastic.co/t/data-migration-between-elastic-clusters/281363/4 "2021-08-17T04:28:04Z")

</div>

Ok, then look at running a remote reindex, or snapshot and restore.

---

<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:** [September 14, 2021, 4:28am UTC](https://discuss.elastic.co/t/data-migration-between-elastic-clusters/281363/5 "2021-09-14T04:28:16Z")

</div>

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