# SMB as path.repo for snapshotg

**URL:** https://discuss.elastic.co/t/smb-as-path-repo-for-snapshotg/280346
**Category:** Elasticsearch
**Tags:** docker, snapshot-and-restore
**Created:** [August 3, 2021, 3:51pm UTC](https://discuss.elastic.co/t/smb-as-path-repo-for-snapshotg/280346 "2021-08-03T15:51:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cheapsupps](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@cheapsupps](https://discuss.elastic.co/u/cheapsupps)
#### Post date: [August 3, 2021, 3:51pm UTC](https://discuss.elastic.co/t/smb-as-path-repo-for-snapshotg/280346/1 "2021-08-03T15:51:40Z")

</div>

I have pointed the path.repo to my windows smb share.  
However, this smb share requires username and password. Is there anyway I can add the username and password to the elasticsearch.yml file? I am using docker.

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [August 4, 2021, 9:13am UTC](https://discuss.elastic.co/t/smb-as-path-repo-for-snapshotg/280346/2 "2021-08-04T09:13:56Z")

</div>

The `fs` repository does not support specifying username or password.

When you mount the endpoint, is it possible for you to specify the username and password of that smb share? Under Linux this could work with a `cifs` mountpoint in the fstab IIRC

---

<div class="post-metadata">

### Author: ![cheapsupps](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@cheapsupps](https://discuss.elastic.co/u/cheapsupps)
#### Post date: [August 4, 2021, 9:28am UTC](https://discuss.elastic.co/t/smb-as-path-repo-for-snapshotg/280346/3 "2021-08-04T09:28:23Z")

</div>

thanks for reply. I am actually using kubernetes to deploy the elasticsearch image. I have managed to get the snapshot working by using the smb csi.

---

<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: [September 1, 2021, 9:29am UTC](https://discuss.elastic.co/t/smb-as-path-repo-for-snapshotg/280346/4 "2021-09-01T09:29:01Z")

</div>

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