# Merging indices from old server

**URL:** https://discuss.elastic.co/t/merging-indices-from-old-server/259420
**Category:** Elasticsearch
**Created:** [December 22, 2020, 6:33pm UTC](https://discuss.elastic.co/t/merging-indices-from-old-server/259420 "2020-12-22T18:33:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![alfredoCo](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@alfredoCo](https://discuss.elastic.co/u/alfredoCo)
#### Post date: [December 22, 2020, 6:33pm UTC](https://discuss.elastic.co/t/merging-indices-from-old-server/259420/1 "2020-12-22T18:33:38Z")

</div>

Hello,

I need to merge the data of an index from the old server into the new one. The data has been accumulating over a month now in the new server. should I copy the data via a script? or there is a build in functionality to do it for me.  
In case I need to do it by hand, how should I solve the clashing ids problem?

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: [December 22, 2020, 11:59pm UTC](https://discuss.elastic.co/t/merging-indices-from-old-server/259420/2 "2020-12-22T23:59:46Z")

</div>

Welcome to our community! 😃

Are they different clusters?

---

<div class="post-metadata">

### Author: ![alfredoCo](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@alfredoCo](https://discuss.elastic.co/u/alfredoCo)
#### Post date: [December 23, 2020, 6:02am UTC](https://discuss.elastic.co/t/merging-indices-from-old-server/259420/3 "2020-12-23T06:02:50Z")

</div>

Thanks)  
I have one cluster with one node.  
I've read that I can use an alias to perform search on different indices, or I can use the bulk API to copy the data via an external App.  
Is there any better way to handle this case?

---

<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: [December 24, 2020, 5:24am UTC](https://discuss.elastic.co/t/merging-indices-from-old-server/259420/4 "2020-12-24T05:24:21Z")

</div>

It's not clear where you are moving things from/to if it's just a single cluster?

---

<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: [January 21, 2021, 5:24am UTC](https://discuss.elastic.co/t/merging-indices-from-old-server/259420/5 "2021-01-21T05:24:28Z")

</div>

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