# Backup repository credential

**URL:** <https://discuss.elastic.co/t/backup-repository-credential/113476>\
**Category:** Elasticsearch\
**Created:** [December 28, 2017, 4:21pm UTC](https://discuss.elastic.co/t/backup-repository-credential/113476 "2017-12-28T16:21:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![frederic.obez](https://avatars.discourse-cdn.com/v4/letter/f/2bfe46/32.png) [@frederic.obez](https://discuss.elastic.co/u/frederic.obez)\
**Post date:** [December 28, 2017, 4:21pm UTC](https://discuss.elastic.co/t/backup-repository-credential/113476/1 "2017-12-28T16:21:27Z")

</div>

Hi all,

I have a question concerning the configuration of the repository within ElasticSearch config file.  
We are running a 4 nodes cluster on Windows, we need to store the backup on a dedicated server, we create a shared folder on this, but this server is not on the domain. We defined specific credential to access this folder.

How can I specify those credential on the ElasticSearch.yml ? or is a specific plug in or best practice that I can use ?

I try to define a network drive and store those credential within the network drive, but I'm always getting an error and ElasticSearch stop working -\> Unable to access 'path.repo' (Z:\Repo)

Do you have any other workaround or possibility for that ?

Thanks,

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [December 29, 2017, 3:29am UTC](https://discuss.elastic.co/t/backup-repository-credential/113476/2 "2017-12-29T03:29:48Z")

</div>

> [@frederic.obez](#):
>
> Unable to access 'path.repo' (Z:\Repo)

**this need share**

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [December 29, 2017, 3:38am UTC](https://discuss.elastic.co/t/backup-repository-credential/113476/3 "2017-12-29T03:38:39Z")

</div>

see this:  
[https://www.elastic.co/guide/en/elasticsearch/reference/5.6/modules-snapshots.html#\_shared\_file\_system\_repository](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/modules-snapshots.html#_shared_file_system_repository)

```
Assuming that the shared filesystem is mounted to /mount/backups/my_backup, the following setting should be added to elasticsearch.yml file:

path.repo: ["/mount/backups", "/mount/longterm_backups"]
The path.repo setting supports Microsoft Windows UNC paths as long as at least server name and share are specified as a prefix and back slashes are properly escaped:

path.repo: ["\\\\MY_SERVER\\Snapshots"]
```

---

<div class="post-metadata">

**Author:** ![frederic.obez](https://avatars.discourse-cdn.com/v4/letter/f/2bfe46/32.png) [@frederic.obez](https://discuss.elastic.co/u/frederic.obez)\
**Post date:** [December 29, 2017, 7:13am UTC](https://discuss.elastic.co/t/backup-repository-credential/113476/4 "2017-12-29T07:13:06Z")

</div>

Hi,

Thanks for your reply, this works but now is how to give specific credential to access this shared drive ?

Thx,

---

<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:** [January 26, 2018, 7:13am UTC](https://discuss.elastic.co/t/backup-repository-credential/113476/5 "2018-01-26T07:13:43Z")

</div>

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