# Same snapshot, different paths

**URL:** <https://kopia.discourse.group/t/same-snapshot-different-paths/1402>\
**Category:** General\
**Created:** [September 6, 2022, 12:53pm UTC](https://kopia.discourse.group/t/same-snapshot-different-paths/1402 "2022-09-06T12:53:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rui](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rui](https://kopia.discourse.group/u/rui)\
**Post date:** [September 6, 2022, 12:53pm UTC](https://kopia.discourse.group/t/same-snapshot-different-paths/1402/1 "2022-09-06T12:53:05Z")

</div>

Assuming I already have a remote repository and two different machines, I want to backup the “same” folder from both machines to said repository.

If the folder is `$HOME/foo` on Linux this would be `/home/me/foo` and on macOS `/Users/me/foo`. Would doing `kopia snapshot ~/foo` on both machines backup as a single folder? If not, how can I do this?

---

<div class="post-metadata">

**Author:** ![basldfalksjdf](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@basldfalksjdf](https://kopia.discourse.group/u/basldfalksjdf)\
**Post date:** [September 7, 2022, 12:46am UTC](https://kopia.discourse.group/t/same-snapshot-different-paths/1402/2 "2022-09-07T00:46:27Z")

</div>

Not sure I understand your question, but you should be able to backup two different machines to the same repository just fine.

Just run Kopia on each machine, connect to the same repository, and setup a policy to backup `/home/me/foo` on the Linux machine and a policy to backup `/Users/me/foo` on the Mac. Kopia will backup both machines to the same repository and use deduplication, so if the two folders contain the same content, then the repository will only hold one copy of that content.

---

<div class="post-metadata">

**Author:** ![rui](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rui](https://kopia.discourse.group/u/rui)\
**Post date:** [September 7, 2022, 10:09am UTC](https://kopia.discourse.group/t/same-snapshot-different-paths/1402/3 "2022-09-07T10:09:54Z")

</div>

Thank you. That was indeed my question. I wasn’t sure at which level deduplication was made and if the files being in different folders would make a difference.

---

<div class="post-metadata">

**Author:** ![IcePic](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@IcePic](https://kopia.discourse.group/u/IcePic)\
**Post date:** [September 19, 2022, 2:31pm UTC](https://kopia.discourse.group/t/same-snapshot-different-paths/1402/4 "2022-09-19T14:31:48Z")

</div>

As far as kopia goes, they are two very different directories, belonging to me@mymac:/Users/me/foo and the other to me@linuxbox:/home/me/foo so it will most certainly treat them as separate entities, BUT it will attempt to share as much data (ie, the content) that it can if you keep same/similar files in both “foo” directories. If they are almost 100% alike, the data usage for the second “foo” backup will be almost nil, but they are handled separately and can have very different schedules and so on.
