# How to copy the data from an index of 150 GB size to another

**URL:** https://discuss.elastic.co/t/how-to-copy-the-data-from-an-index-of-150-gb-size-to-another/347574
**Category:** Elasticsearch
**Created:** [November 21, 2023, 3:48am UTC](https://discuss.elastic.co/t/how-to-copy-the-data-from-an-index-of-150-gb-size-to-another/347574 "2023-11-21T03:48:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mohan91](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@Mohan91](https://discuss.elastic.co/u/Mohan91)
#### Post date: [November 21, 2023, 3:48am UTC](https://discuss.elastic.co/t/how-to-copy-the-data-from-an-index-of-150-gb-size-to-another/347574/1 "2023-11-21T03:48:59Z")

</div>

I have an index "Index A" of size 150+ GB, there are few fields which needs to be converted to NESTED and for few fields the type to be changed from "keyword" to "text" and vice versa.

I have created a new index "Index B" with the necessary types/changes, as I could not modify the existing index to have NESTED type as it has data.

Whenever I use "POST \_reindex" its getting into "Time Out error" both with and without filter query, what is the process to copy the 150+ GB of data from Index A to Index B ?

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [November 21, 2023, 10:15am UTC](https://discuss.elastic.co/t/how-to-copy-the-data-from-an-index-of-150-gb-size-to-another/347574/2 "2023-11-21T10:15:15Z")

</div>

Hi @Mohan91,

Welcome to the community! I can think of a couple of options:

1. Triggering an async reindex as covered in the documentation [here](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/docs-reindex.html#docs-reindex-task-api). Although with your volume I think batching might be a better idea.
2. Using the slicing operator to split the reindexing into multiple slices, as covered [here](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/docs-reindex.html#docs-reindex-slice).

Hope that helps!

---

<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: [December 19, 2023, 10:15am UTC](https://discuss.elastic.co/t/how-to-copy-the-data-from-an-index-of-150-gb-size-to-another/347574/3 "2023-12-19T10:15:27Z")

</div>

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