# Backup elastic indices

**URL:** <https://discuss.elastic.co/t/backup-elastic-indices/139417>\
**Category:** Elasticsearch\
**Created:** [July 10, 2018, 6:42pm UTC](https://discuss.elastic.co/t/backup-elastic-indices/139417 "2018-07-10T18:42:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nehaankam](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@nehaankam](https://discuss.elastic.co/u/nehaankam)\
**Post date:** [July 10, 2018, 6:42pm UTC](https://discuss.elastic.co/t/backup-elastic-indices/139417/1 "2018-07-10T18:42:59Z")

</div>

I am trying to backup my indices in elasticsearch. Its working fine in my local. When I do the same in cloud, I get an exception as follows:  
{“error”:“RepositoryException[[janusindexbackup] failed to create repository]; nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.repositories.RepositoryException: [janusindexbackup] location [janusindex] 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[[janusindexbackup] location [janusindex] doesn’t match any of the locations specified by path.repo because this setting is empty]; “,”status”:500}

Any suggestions?

---

<div class="post-metadata">

**Author:** ![gabriel\_tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_tessier/32/27911_2.png) [@gabriel\_tessier](https://discuss.elastic.co/u/gabriel_tessier)\
**Post date:** [July 11, 2018, 12:30am UTC](https://discuss.elastic.co/t/backup-elastic-indices/139417/2 "2018-07-11T00:30:21Z")

</div>

one suggestion is to copy your error message in google:

> location [janusindex] doesn’t match any of the locations specified by path.repo because this setting is empty

Then go to the first result found:

> [@Path.repo is empty](https://discuss.elastic.co/t/path-repo-is-empty/25166/4):
>
> Ok. Finally I found there was a problem... In Ubuntu the elasticsearch directory configured directly in init script /etc/init.d/elasticsearch and then laucnhed via DAEMON\_OPTS like : DAEMON\_OPTS="-d -p $PID\_FILE --default.config=$CONF\_FILE --default.path.home=$ES\_HOME --default.path.logs=$LOG\_DIR --default.path.data=$DATA\_DIR --default.path.work=$WORK\_DIR --default.path.conf=$CONF\_DIR" So for the moment I could fix the problem adding : REPO\_DIR=/backup/es\_backup\_basic and DAEMON\_OPTS=…

and then read it, look like several users had the same problem, you may find one solution in the thread.

---

<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:** [August 8, 2018, 12:30am UTC](https://discuss.elastic.co/t/backup-elastic-indices/139417/3 "2018-08-08T00:30:23Z")

</div>

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