# How to give different locations Data folder in linux Box in elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-give-different-locations-data-folder-in-linux-box-in-elasticsearch/82099>\
**Category:** Elasticsearch\
**Created:** [April 12, 2017, 6:43am UTC](https://discuss.elastic.co/t/how-to-give-different-locations-data-folder-in-linux-box-in-elasticsearch/82099 "2017-04-12T06:43:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvnages](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bvnages](https://discuss.elastic.co/u/bvnages)\
**Post date:** [April 12, 2017, 6:43am UTC](https://discuss.elastic.co/t/how-to-give-different-locations-data-folder-in-linux-box-in-elasticsearch/82099/1 "2017-04-12T06:43:04Z")

</div>

Currently i am download tar file and unzipped particular location. In that location we have data folder is there .But I have another directory data folder required.  
This is for backup purpose.

Could you please tell me.

---

<div class="post-metadata">

**Author:** ![shanec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shanec/32/4004_2.png) [@shanec](https://discuss.elastic.co/u/shanec)\
**Post date:** [April 14, 2017, 5:52pm UTC](https://discuss.elastic.co/t/how-to-give-different-locations-data-folder-in-linux-box-in-elasticsearch/82099/2 "2017-04-14T17:52:37Z")

</div>

If you just want to change the data path, you'll want to have a look at the [`path.data`](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/modules-node.html#data-path) setting. If you're trying to back up Elasticsearch to a special directory, you'll want to look at the [snapshot and restore module](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/modules-snapshots.html) and you'll need to add the location that you want to back up to the [`path.repo`](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/modules-snapshots.html#_shared_file_system_repository) setting.

---

<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:** [May 12, 2017, 6:06pm UTC](https://discuss.elastic.co/t/how-to-give-different-locations-data-folder-in-linux-box-in-elasticsearch/82099/3 "2017-05-12T18:06:22Z")

</div>

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