# Doesn't match any of the locations specified by path.repo because this setting is empty"

**URL:** <https://discuss.elastic.co/t/doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/283527>\
**Category:** Elasticsearch\
**Created:** [September 7, 2021, 12:10pm UTC](https://discuss.elastic.co/t/doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/283527 "2021-09-07T12:10:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Busra\_Duygu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/busra_duygu/32/90462_2.png) [@Busra\_Duygu](https://discuss.elastic.co/u/Busra_Duygu)\
**Post date:** [September 7, 2021, 12:10pm UTC](https://discuss.elastic.co/t/doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/283527/1 "2021-09-07T12:10:23Z")

</div>

Hello friends i have a problem. I can't backup indices.  
my elasticsearch.yml file:

```auto
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: C:/elastic_stack/elasticsearch-7.13.1/lib
#
# Path to log files:
#
path.logs: C:/elastic_stack/elasticsearch-7.13.1/logs
#

path:
  repo:
    - "C://elastic_stack//elasticsearch-7.13.1//esbackup"       

```

I'm trying from kibana :

```auto
PUT /_snapshot/my_backup
{
  "type": "fs",
  "settings": {
    "location": "C://elastic_stack//elasticsearch-7.13.1//esbackup",
    "compress": true
  }
}

```

Error:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "repository_exception",
        "reason" : "[my_backup] location [C://elastic_stack//elasticsearch-7.13.1//esbackup] doesn't match any of the locations specified by path.repo because this setting is empty"
      }
    ],
    "type" : "repository_exception",
    "reason" : "[my_backup] failed to create repository",
    "caused_by" : {
      "type" : "repository_exception",
      "reason" : "[my_backup] location [C://elastic_stack//elasticsearch-7.13.1//esbackup] doesn't match any of the locations specified by path.repo because this setting is empty"
    }
  },
  "status" : 500
}

```

Please help me dear friends 😔

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [September 7, 2021, 12:46pm UTC](https://discuss.elastic.co/t/doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/283527/2 "2021-09-07T12:46:13Z")

</div>

Your path separators are leaning the wrong way: on Windows it's `\` not `/`.

---

<div class="post-metadata">

**Author:** ![Busra\_Duygu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/busra_duygu/32/90462_2.png) [@Busra\_Duygu](https://discuss.elastic.co/u/Busra_Duygu)\
**Post date:** [September 7, 2021, 12:58pm UTC](https://discuss.elastic.co/t/doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/283527/3 "2021-09-07T12:58:29Z")

</div>

It was written on elasticsearch's official site that do not use oblique slash.

```auto

```

Windows installations support both DOS and Microsoft UNC paths. Escaped any backslashes in the paths. For UNC paths, provide the server and share name as a prefix.

path:  
repo:  
- "E:\Mount\Backups"  
- "\\MY\_SERVER\Mount\Long\_term\_backups"

```auto

```

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [September 7, 2021, 1:00pm UTC](https://discuss.elastic.co/t/doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/283527/4 "2021-09-07T13:00:24Z")

</div>

I'm confused, the docs you quote use the correct slash for Windows (`\`) whereas the config you shared previously uses the wrong one (`/`).

---

<div class="post-metadata">

**Author:** ![Busra\_Duygu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/busra_duygu/32/90462_2.png) [@Busra\_Duygu](https://discuss.elastic.co/u/Busra_Duygu)\
**Post date:** [September 7, 2021, 1:06pm UTC](https://discuss.elastic.co/t/doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/283527/5 "2021-09-07T13:06:03Z")

</div>

I am also confused when I use (\) in elasticsearch.yml I cannot run elasticsearch.bat file.

---

<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:** [October 5, 2021, 1:06pm UTC](https://discuss.elastic.co/t/doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/283527/6 "2021-10-05T13:06:21Z")

</div>

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