# Installa elasticsearch in a different directory

**URL:** <https://discuss.elastic.co/t/installa-elasticsearch-in-a-different-directory/302226>\
**Category:** Elasticsearch\
**Created:** [April 12, 2022, 12:37pm UTC](https://discuss.elastic.co/t/installa-elasticsearch-in-a-different-directory/302226 "2022-04-12T12:37:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustavoluza](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gustavoluza](https://discuss.elastic.co/u/gustavoluza)\
**Post date:** [April 12, 2022, 12:37pm UTC](https://discuss.elastic.co/t/installa-elasticsearch-in-a-different-directory/302226/1 "2022-04-12T12:37:59Z")

</div>

hi, by default Elasticsearch are installed in / directory (/etc/Elasticsearch).  
but i have an partition in my centos that is dedicated just for the database, how can change the default installing partition and install Elasticsearch on this partition?

or, can i just save the indices that are created in kibana to another partition?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 13, 2022, 1:35pm UTC](https://discuss.elastic.co/t/installa-elasticsearch-in-a-different-directory/302226/2 "2022-04-13T13:35:59Z")

</div>

Hey,

if you have a partition just for the database, would it be sufficient to only store the **data** in there by configuring the correct path? This can be done in the Elasticsearch configuration, see [Important Elasticsearch configuration | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.1/important-settings.html#path-settings)

Can you explain a little more context about your last question what the intent of that is?

---

<div class="post-metadata">

**Author:** ![gustavoluza](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gustavoluza](https://discuss.elastic.co/u/gustavoluza)\
**Post date:** [April 13, 2022, 2:27pm UTC](https://discuss.elastic.co/t/installa-elasticsearch-in-a-different-directory/302226/3 "2022-04-13T14:27:17Z")

</div>

@spinscale i will try this.

the context is to preserve the data in case of problems with my Linux, and this will let me just take the backup from the database, not from all the VM

---

<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 11, 2022, 2:27pm UTC](https://discuss.elastic.co/t/installa-elasticsearch-in-a-different-directory/302226/4 "2022-05-11T14:27:37Z")

</div>

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