# Setting Up Snapshot - Repository (What to set for Path.Repo)

**URL:** <https://discuss.elastic.co/t/setting-up-snapshot-repository-what-to-set-for-path-repo/257717>\
**Category:** Elasticsearch\
**Created:** [December 5, 2020, 6:16am UTC](https://discuss.elastic.co/t/setting-up-snapshot-repository-what-to-set-for-path-repo/257717 "2020-12-05T06:16:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sampson\_Light](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sampson_light/32/77283_2.png) [@Sampson\_Light](https://discuss.elastic.co/u/Sampson_Light)\
**Post date:** [December 5, 2020, 6:16am UTC](https://discuss.elastic.co/t/setting-up-snapshot-repository-what-to-set-for-path-repo/257717/1 "2020-12-05T06:16:48Z")

</div>

Hi All,

So I am currently setting up my path.repo repository to enable Snapshot onto my linux server.

I understand that I am suppose to create something new like a path.repo inside my elasticsearch.yml.

Something like:

path.repo: ["/backup/es\_backup\_for\_snapshot"] .

Note that I am trying to setup my configuration to an existing server and not localhost.

So my question here is, this directory of "/backup/es\_backup\_for\_snapshot",

(1) Created and named with mkdir on my linux server? Or it is created using a  
(2) PUT command on say - elasticsearch head/elastic vue plugin?

Can any experts advise me which approach is correct, and if both are wrong, how should I go about setting up my path.repo.

---

<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:** [December 5, 2020, 9:24am UTC](https://discuss.elastic.co/t/setting-up-snapshot-repository-what-to-set-for-path-repo/257717/2 "2020-12-05T09:24:53Z")

</div>

Create the directory yourself and give it the right permissions (typically you want it to be owned by same user that runs Elasticsearch).

---

<div class="post-metadata">

**Author:** ![Sampson\_Light](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sampson_light/32/77283_2.png) [@Sampson\_Light](https://discuss.elastic.co/u/Sampson_Light)\
**Post date:** [December 5, 2020, 9:34am UTC](https://discuss.elastic.co/t/setting-up-snapshot-repository-what-to-set-for-path-repo/257717/3 "2020-12-05T09:34:14Z")

</div>

Hi David,

Thanks for replying, if it is not too troublesome, could you give me an example on how I can create the directory myself?

Specifically, from linux server, or via elastichead/elastic vue plugin?

---

<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:** [December 5, 2020, 9:36am UTC](https://discuss.elastic.co/t/setting-up-snapshot-repository-what-to-set-for-path-repo/257717/4 "2020-12-05T09:36:44Z")

</div>

As you said in your post, using `mkdir`.

---

<div class="post-metadata">

**Author:** ![Sampson\_Light](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sampson_light/32/77283_2.png) [@Sampson\_Light](https://discuss.elastic.co/u/Sampson_Light)\
**Post date:** [December 5, 2020, 9:37am UTC](https://discuss.elastic.co/t/setting-up-snapshot-repository-what-to-set-for-path-repo/257717/5 "2020-12-05T09:37:35Z")

</div>

Thats great, thank you for the input!

---

<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 2, 2021, 9:37am UTC](https://discuss.elastic.co/t/setting-up-snapshot-repository-what-to-set-for-path-repo/257717/6 "2021-01-02T09:37:38Z")

</div>

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