# One snapshot repository for different clusters?

**URL:** <https://discuss.elastic.co/t/one-snapshot-repository-for-different-clusters/170678>\
**Category:** Elasticsearch\
**Created:** [March 4, 2019, 6:50am UTC](https://discuss.elastic.co/t/one-snapshot-repository-for-different-clusters/170678 "2019-03-04T06:50:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![warp](https://avatars.discourse-cdn.com/v4/letter/w/8e7dd6/32.png) [@warp](https://discuss.elastic.co/u/warp)\
**Post date:** [March 4, 2019, 6:50am UTC](https://discuss.elastic.co/t/one-snapshot-repository-for-different-clusters/170678/1 "2019-03-04T06:50:02Z")

</div>

I'd like to understand what will happen if (e.g. by accident) two different clusters will backup to the same repository. Is that possible/allowed or will it corrupt the data? The documentation did not hint in either direction.  
(Obviously someone also asked this question last year but got no reply: [Snapshot multiple clusters to same repository](https://discuss.elastic.co/t/snapshot-multiple-clusters-to-same-repository/137463))

---

<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 4, 2019, 8:40am UTC](https://discuss.elastic.co/t/one-snapshot-repository-for-different-clusters/170678/2 "2019-03-04T08:40:26Z")

</div>

The [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html) forbids it:

> If you register same snapshot repository with multiple clusters, only one cluster should have write access to the repository. All other clusters connected to that repository should set the repository to `readonly` mode.

If you allow two clusters to write to the same repository then it will at some point become corrupt.

---

<div class="post-metadata">

**Author:** ![warp](https://avatars.discourse-cdn.com/v4/letter/w/8e7dd6/32.png) [@warp](https://discuss.elastic.co/u/warp)\
**Post date:** [March 4, 2019, 9:00am UTC](https://discuss.elastic.co/t/one-snapshot-repository-for-different-clusters/170678/3 "2019-03-04T09:00:44Z")

</div>

You are right, thanks for that hint!

---

<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 1, 2019, 9:00am UTC](https://discuss.elastic.co/t/one-snapshot-repository-for-different-clusters/170678/4 "2019-04-01T09:00:46Z")

</div>

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