# Copying data from one elastic server to different elastic server for specific time interval

**URL:** https://discuss.elastic.co/t/copying-data-from-one-elastic-server-to-different-elastic-server-for-specific-time-interval/195167
**Category:** Elasticsearch
**Created:** [August 14, 2019, 8:56am UTC](https://discuss.elastic.co/t/copying-data-from-one-elastic-server-to-different-elastic-server-for-specific-time-interval/195167 "2019-08-14T08:56:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![amit.karir](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@amit.karir](https://discuss.elastic.co/u/amit.karir)
#### Post date: [August 14, 2019, 8:56am UTC](https://discuss.elastic.co/t/copying-data-from-one-elastic-server-to-different-elastic-server-for-specific-time-interval/195167/1 "2019-08-14T08:56:55Z")

</div>

We have 2 different elastic search servers, both having same version(5.5.2). 1st elastic search server has latest up to date data. Second server is having stale data, which is like a back up of one weeks old data. We copied the entire data folder from server 1 like a week ago. We need to only copy data for the a week from server 1 to server 2. Please suggest how to do so.  
We have an index pattern of [rpa-trans-]YYYY.MM.DD. This index uses a time-based index pattern which repeats Daily

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [August 14, 2019, 10:31am UTC](https://discuss.elastic.co/t/copying-data-from-one-elastic-server-to-different-elastic-server-for-specific-time-interval/195167/2 "2019-08-14T10:31:24Z")

</div>

instead of copying files around from one cluster to another, take a look at [snapshot & restore](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/modules-snapshots.html) or [reindex from remote](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/reindex-upgrade-remote.html)

---

<div class="post-metadata">

### Author: ![amit.karir](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@amit.karir](https://discuss.elastic.co/u/amit.karir)
#### Post date: [August 20, 2019, 9:01am UTC](https://discuss.elastic.co/t/copying-data-from-one-elastic-server-to-different-elastic-server-for-specific-time-interval/195167/3 "2019-08-20T09:01:01Z")

</div>

Thanks Alex for the response.

But we want to move data depending on date range from first server. Please note that second elastic search server is also getting updated. We cannot replace the entire data on second server using snapshot and restore.

Please let me know if I'm missing something.

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [August 20, 2019, 11:25am UTC](https://discuss.elastic.co/t/copying-data-from-one-elastic-server-to-different-elastic-server-for-specific-time-interval/195167/4 "2019-08-20T11:25:48Z")

</div>

the reindex feature allows you to select data based on a query, would that work?

---

<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 17, 2019, 11:27am UTC](https://discuss.elastic.co/t/copying-data-from-one-elastic-server-to-different-elastic-server-for-specific-time-interval/195167/5 "2019-09-17T11:27:51Z")

</div>

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