# Copying the repository directory to a new cluster

**URL:** <https://discuss.elastic.co/t/copying-the-repository-directory-to-a-new-cluster/145857>\
**Category:** Elasticsearch\
**Created:** [August 24, 2018, 7:13am UTC](https://discuss.elastic.co/t/copying-the-repository-directory-to-a-new-cluster/145857 "2018-08-24T07:13:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![justforES](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@justforES](https://discuss.elastic.co/u/justforES)\
**Post date:** [August 24, 2018, 7:13am UTC](https://discuss.elastic.co/t/copying-the-repository-directory-to-a-new-cluster/145857/1 "2018-08-24T07:13:25Z")

</div>

Hi,  
I have a few snapshots of my indices in my old ES cluster in shared file system stored in my cluster. I want to copy the repository directory to a new ES cluster to restore the snapshots on the new cluster.  
When testing on my local machine on single node just simply copying the data of old ES repository and creating a repository of same name as the previous one works ?  
What are the best ways to do this on a 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:** [September 21, 2018, 7:13am UTC](https://discuss.elastic.co/t/copying-the-repository-directory-to-a-new-cluster/145857/2 "2018-09-21T07:13:27Z")

</div>

Closed on September 21, 2018, 7:13am UTC

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