# Mirrored repositories

**URL:** <https://kopia.discourse.group/t/mirrored-repositories/3125>\
**Category:** Feature Requests\
**Created:** [July 25, 2024, 8:18pm UTC](https://kopia.discourse.group/t/mirrored-repositories/3125 "2024-07-25T20:18:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Ericson](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/mark_ericson/32/1152_2.png) [@Mark\_Ericson](https://kopia.discourse.group/u/Mark_Ericson)\
**Post date:** [July 25, 2024, 8:18pm UTC](https://kopia.discourse.group/t/mirrored-repositories/3125/1 "2024-07-25T20:18:05Z")

</div>

By mirrored repository, I am referring to the ability to have a local and cloud repository and perform a snapshot to both destinations simultaneously.

It seems there could be significant opportunities for performance efficiencies and cache size if a single snapshot could be sent to multiple repositories. Kopia would only need to hash and compress the source files only once, before saving to both repositories, and there could be a shared cache.

I understand that there might be issues if the repositories diverge, so maybe there could be safeguards for that possibility. Maybe the repository configuration could reference a ‘mirrored’ pair and bring the repositories into sync before performing the snapshot.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [July 25, 2024, 11:26pm UTC](https://kopia.discourse.group/t/mirrored-repositories/3125/2 "2024-07-25T23:26:16Z")

</div>

> [@Mark\_Ericson](#):
>
> performance efficiencies and cache size

if this is your concern than you could snapshot to one repository and then `kopia repository sync-to` from it to another one.

---

<div class="post-metadata">

**Author:** ![Mark\_Ericson](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/mark_ericson/32/1152_2.png) [@Mark\_Ericson](https://kopia.discourse.group/u/Mark_Ericson)\
**Post date:** [July 27, 2024, 2:40am UTC](https://kopia.discourse.group/t/mirrored-repositories/3125/3 "2024-07-27T02:40:39Z")

</div>

I wouldn’t say that is my only concern, the additional benefit would be a near simultaneous snapshot.

Correct me if I am wrong, but I presume it would be most efficient to perform the snapshot to the a local repository on an external drive followed by the sync-to the cloud one?
