# Error in creating a snapshot in elasticsearch 2.4.0?

**URL:** <https://discuss.elastic.co/t/error-in-creating-a-snapshot-in-elasticsearch-2-4-0/71133>\
**Category:** Elasticsearch\
**Created:** [January 10, 2017, 6:36pm UTC](https://discuss.elastic.co/t/error-in-creating-a-snapshot-in-elasticsearch-2-4-0/71133 "2017-01-10T18:36:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [January 10, 2017, 6:36pm UTC](https://discuss.elastic.co/t/error-in-creating-a-snapshot-in-elasticsearch-2-4-0/71133/1 "2017-01-10T18:36:45Z")

</div>

Hi everyone,

For creating a snapshot i have create a path.repo in elasticsearch.yml .  
I want to know where i have to add path.repo line in elasticsearch.yml.  
When i tried adding in the last line of elasticsearch.yml the cluster itself not staring and throwing a error like this

 ![](https://us1.discourse-cdn.com/elastic/original/2X/1/1ad30d091402f0bc2ec8af21e08c7c3cdc5bb1ea.png)

i given the following syntax in elasticsearch.yml

 ![](https://us1.discourse-cdn.com/elastic/original/2X/9/9023acb454d0e3a898d306d54a4ec9a9271f8b42.png)

And i also tried giving  
path.repo:["F:/elasticsearch-2.4.0/elasticsearch-2.4.0/Backup"]  
Can anyone help me in solving this?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 11, 2017, 5:02am UTC](https://discuss.elastic.co/t/error-in-creating-a-snapshot-in-elasticsearch-2-4-0/71133/2 "2017-01-11T05:02:19Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them..

---

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [January 11, 2017, 5:07am UTC](https://discuss.elastic.co/t/error-in-creating-a-snapshot-in-elasticsearch-2-4-0/71133/3 "2017-01-11T05:07:48Z")

</div>

sry..  
thanks for saying..

---

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [January 11, 2017, 6:50am UTC](https://discuss.elastic.co/t/error-in-creating-a-snapshot-in-elasticsearch-2-4-0/71133/4 "2017-01-11T06:50:39Z")

</div>

Got the answer..  
I added the path.repo in the last line and given space between : and [

path.repo: ["/ElasticSearch 2.4.0/elasticsearch-2.4.0/Backup"]

---

<div class="post-metadata">

**Author:** ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)\
**Post date:** [January 11, 2017, 7:05am UTC](https://discuss.elastic.co/t/error-in-creating-a-snapshot-in-elasticsearch-2-4-0/71133/5 "2017-01-11T07:05:16Z")

</div>

Take care while editing yaml files. They are space sensitive

---

<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 8, 2017, 7:05am UTC](https://discuss.elastic.co/t/error-in-creating-a-snapshot-in-elasticsearch-2-4-0/71133/6 "2017-02-08T07:05:20Z")

</div>

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