# Move data directory 8.5.2

**URL:** <https://discuss.elastic.co/t/move-data-directory-8-5-2/351168>\
**Category:** Elasticsearch\
**Created:** [January 16, 2024, 12:49pm UTC](https://discuss.elastic.co/t/move-data-directory-8-5-2/351168 "2024-01-16T12:49:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chel/32/49777_2.png) [@Chel](https://discuss.elastic.co/u/Chel)\
**Post date:** [January 16, 2024, 12:49pm UTC](https://discuss.elastic.co/t/move-data-directory-8-5-2/351168/1 "2024-01-16T12:49:05Z")

</div>

I want to move data directory from cluster A to Cluster B. Both have documents present. I want to copy the documents from cluster A to cluster B. Both cluster have different uuid's . Is it possible to change the cluster uuid of cluster B to match with cluster A without losing data in cluster B and as well move Cluster A data to cluster B

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 16, 2024, 1:00pm UTC](https://discuss.elastic.co/t/move-data-directory-8-5-2/351168/2 "2024-01-16T13:00:45Z")

</div>

You need to use the [snapshot and restore functionality](https://www.elastic.co/guide/en/elasticsearch/reference/8.11/snapshot-restore-apis.html). You can not just copy data folders over.

---

<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:** [February 13, 2024, 1:01pm UTC](https://discuss.elastic.co/t/move-data-directory-8-5-2/351168/3 "2024-02-13T13:01:02Z")

</div>

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