# Snapshot

**URL:** <https://discuss.elastic.co/t/snapshot/171818>\
**Category:** Elasticsearch\
**Created:** [March 11, 2019, 5:14pm UTC](https://discuss.elastic.co/t/snapshot/171818 "2019-03-11T17:14:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbking](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bbking/32/77563_2.png) [@bbking](https://discuss.elastic.co/u/bbking)\
**Post date:** [March 11, 2019, 5:14pm UTC](https://discuss.elastic.co/t/snapshot/171818/1 "2019-03-11T17:14:04Z")

</div>

Hello! Can I add snapshot while Elasticsearch cluster is running? Do I have to restart the cluster by adding `path.repo` in elasticsearch.yml?

---

<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:** [March 11, 2019, 5:19pm UTC](https://discuss.elastic.co/t/snapshot/171818/2 "2019-03-11T17:19:54Z")

</div>

> [@bbking](#):
>
> Can I add snapshot while Elasticsearch cluster is running?

You can take a snapshot when the cluster is running (indeed, you cannot take a snapshot if the cluster is not running). Perhaps you are asking about adding a repository? Similarly you can add a repository if and only if the cluster is running.

> [@bbking](#):
>
> Do I have to restart the cluster by adding `path.repo` in elasticsearch.yml?

If the repository you want to add is not already within a `path.repo` setting in the cluster then yes, you must add this to `elasticsearch.yml` on every node and then restart each node. If you do not want to shut your whole cluster down then you can do this one node at a time, like a [rolling upgrade](https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html) but without the upgrading part.

---

<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:** [April 8, 2019, 5:19pm UTC](https://discuss.elastic.co/t/snapshot/171818/3 "2019-04-08T17:19:55Z")

</div>

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