# Getting error when doing back up

**URL:** <https://discuss.elastic.co/t/getting-error-when-doing-back-up/44276>\
**Category:** Elasticsearch\
**Created:** [March 14, 2016, 3:44am UTC](https://discuss.elastic.co/t/getting-error-when-doing-back-up/44276 "2016-03-14T03:44:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chichu](https://avatars.discourse-cdn.com/v4/letter/c/ecc23a/32.png) [@chichu](https://discuss.elastic.co/u/chichu)\
**Post date:** [March 14, 2016, 3:44am UTC](https://discuss.elastic.co/t/getting-error-when-doing-back-up/44276/1 "2016-03-14T03:44:37Z")

</div>

When i run back up command i am getting the below error.

Error  
{"error":"RepositoryException[[my\_backup] failed to create repository]; nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.repositories.RepositoryException: [my\_backup] location [/elasticsearch-1.7.2/backup] doesn't match any of the locations specified by path.repo because this setting is empty\n at org.elasticsearch.repositories.fs.FsRepository.(Unknown Source)\n while locating org.elasticsearch.repositories.fs.FsRepository\n while locating org.elasticsearch.repositories.Repository\n\n1 error]; nested: RepositoryException[[my\_backup] location [/elasticsearch-1.7.2/backup] doesn't match any of the locations specified by path.repo because this setting is empty]; ","status":500}  
Can u any one post me some command to take back up

---

<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:** [March 14, 2016, 3:59am UTC](https://discuss.elastic.co/t/getting-error-when-doing-back-up/44276/2 "2016-03-14T03:59:36Z")

</div>

Take a read of [https://www.elastic.co/guide/en/elasticsearch/reference/1.7/modules-snapshots.html#\_shared\_file\_system\_repository](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/modules-snapshots.html#_shared_file_system_repository)

---

<div class="post-metadata">

**Author:** ![chichu](https://avatars.discourse-cdn.com/v4/letter/c/ecc23a/32.png) [@chichu](https://discuss.elastic.co/u/chichu)\
**Post date:** [March 14, 2016, 6:30am UTC](https://discuss.elastic.co/t/getting-error-when-doing-back-up/44276/3 "2016-03-14T06:30:01Z")

</div>

when i am doing repository changes that time only i am getting the error

---

<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:** [March 14, 2016, 8:15am UTC](https://discuss.elastic.co/t/getting-error-when-doing-back-up/44276/4 "2016-03-14T08:15:15Z")

</div>

Yes, but did you read the link?

---

<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:** [July 5, 2017, 11:08pm UTC](https://discuss.elastic.co/t/getting-error-when-doing-back-up/44276/5 "2017-07-05T23:08:43Z")

</div>


