# Elasticsearch cluster data migration

**URL:** <https://discuss.elastic.co/t/elasticsearch-cluster-data-migration/273538>\
**Category:** Elasticsearch\
**Created:** [May 20, 2021, 12:58pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-data-migration/273538 "2021-05-20T12:58:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rknd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rknd/32/103882_2.png) [@rknd](https://discuss.elastic.co/u/rknd)\
**Post date:** [May 20, 2021, 12:58pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-data-migration/273538/1 "2021-05-20T12:58:18Z")

</div>

I have 10 nodes in one cluster(in a server). I want to dump all documents from this cluster. After that, import these docs to new cluster. The new cluster will be have only one node. I have followed this [tutorial](https://www.youtube.com/watch?v=CX7wrB56deI)

After naming the snapshot. I have files. Then I create new cluster with same name and tried to import it. With below code

```auto
curl -XPOST 'http://localhost:9200/_snapshot/esbackup/first-snapshot/_restore?wait_for_completion=true'

```

But this code didn't work fine.

**How can i migrate data from one cluster to new one ?**

Thanks for answering

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 20, 2021, 2:36pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-data-migration/273538/2 "2021-05-20T14:36:10Z")

</div>

Yes. This should work. What is the exact error message?

Also you can use reindex from remote as well if needed.

---

<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:** [June 17, 2021, 2:36pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-data-migration/273538/3 "2021-06-17T14:36:42Z")

</div>

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