# Apple's new Photos app and Hard Links

**URL:** https://forum.syncthing.net/t/apples-new-photos-app-and-hard-links/2410
**Category:** User Stories
**Created:** [April 11, 2015, 2:45pm UTC](https://forum.syncthing.net/t/apples-new-photos-app-and-hard-links/2410 "2015-04-11T14:45:11Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![majorsl](https://forum.syncthing.net/user_avatar/forum.syncthing.net/majorsl/32/952_2.png) [@majorsl](https://forum.syncthing.net/u/majorsl)
#### Post date: [April 11, 2015, 2:45pm UTC](https://forum.syncthing.net/t/apples-new-photos-app-and-hard-links/2410/1 "2015-04-11T14:45:11Z")

</div>

FYI, if any of you are using Apple’s new Photos app, be aware that if you have it upgrade from your iPhoto Library that it uses hard links to reference the same files to save space in the newly created Photos Library.

Syncthing, I believe honors hard links as they appear to be just another file to it.

I’m trying to figure out a way to remove the hard links. Any ideas would be appreciated. One thought would be to backup the Photos Library to another drive, thus hopefully the copy will result in “real” files. Then, delete the original, and copy back and resume syncing.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [April 11, 2015, 2:55pm UTC](https://forum.syncthing.net/t/apples-new-photos-app-and-hard-links/2410/2 "2015-04-11T14:55:11Z")

</div>

You can probably write a small bash script which creates non-duplicate hardlinks to some external directory.

---

<div class="post-metadata">

### Author: ![xHN35RQ](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/x/50afbb/32.png) [@xHN35RQ](https://forum.syncthing.net/u/xHN35RQ)
#### Post date: [April 12, 2015, 1:39am UTC](https://forum.syncthing.net/t/apples-new-photos-app-and-hard-links/2410/3 "2015-04-12T01:39:35Z")

</div>

Wouldn’t Syncthing follow the hard links and sync normal files over to connected devices? I’m not seeing how the duplicate files are appearing.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [April 12, 2015, 10:46am UTC](https://forum.syncthing.net/t/apples-new-photos-app-and-hard-links/2410/4 "2015-04-12T10:46:04Z")

</div>

It would, but I guess he’s worried about it taking up too much space.

---

<div class="post-metadata">

### Author: ![majorsl](https://forum.syncthing.net/user_avatar/forum.syncthing.net/majorsl/32/952_2.png) [@majorsl](https://forum.syncthing.net/u/majorsl)
#### Post date: [April 12, 2015, 1:43pm UTC](https://forum.syncthing.net/t/apples-new-photos-app-and-hard-links/2410/5 "2015-04-12T13:43:59Z")

</div>

Copying back as I’m doing would actually take more space, not less, since the newly create PhotosLibrary would not have hard links.

I have 3 clients currently syncing the same iPhotoLibrary. Once I convert, all these clients will get new PhotosLibrary with hard links to the content of the original iPhotoLibrary.

What happens when we start editing on different machines? Well, maybe nothing since I think Syncthing would still work. Maybe I’m paranoid and a little old fashioned, but I don’t trust links for this amount of data used this way. I just don’t.

---

<div class="post-metadata">

### Author: ![dave](https://forum.syncthing.net/user_avatar/forum.syncthing.net/dave/32/2194_2.png) [@dave](https://forum.syncthing.net/u/dave)
#### Post date: [November 11, 2015, 7:36am UTC](https://forum.syncthing.net/t/apples-new-photos-app-and-hard-links/2410/6 "2015-11-11T07:36:31Z")

</div>

In case this helps anyone making the iPhoto to Photos jump…

If you have both your old library and your new one in the same Syncthing folder, then let Syncthing sync up completely first. This is because if you leave the old library in place, Syncthing will be able to copy the new one without having to move much data over the network (it will simply copy existing blocks from the old library to the new). Once Syncthing is completely synced, and you are happy with your new Photos library, you can safely delete your old library. You see, hard links are different than soft links in that if you delete the old reference, the new file simply stops referencing the old data and references itself instead. That’s the thing about hard links: they are not just a pointer, but a file.

> **[The (hard) link between Photos and iPhoto](https://sixcolors.com/post/2015/02/the-hard-link-between-photos-and-iphoto/)**
>
> \[Updated April 9 to account for the final release of Photos for Mac. Also don’t miss our Photos FAQ.\]
> 
> As I wrote my TidBITS article about the initial beta release of Photos for OS X, I was struck by how iPhoto imports work, which I described li...

---

<div class="post-metadata">

### Author: ![wweich](https://forum.syncthing.net/user_avatar/forum.syncthing.net/wweich/32/1063_2.png) [@wweich](https://forum.syncthing.net/u/wweich)
#### Post date: [November 11, 2015, 7:40am UTC](https://forum.syncthing.net/t/apples-new-photos-app-and-hard-links/2410/7 "2015-11-11T07:40:49Z")

</div>

The old and the new library don’t need to be in the same Syncthing folder.

Syncthing reuses blocks from all of its known data, no matter in what folder they are.

---

<div class="post-metadata">

### Author: ![dave](https://forum.syncthing.net/user_avatar/forum.syncthing.net/dave/32/2194_2.png) [@dave](https://forum.syncthing.net/u/dave)
#### Post date: [November 11, 2015, 7:53am UTC](https://forum.syncthing.net/t/apples-new-photos-app-and-hard-links/2410/8 "2015-11-11T07:53:13Z")

</div>

Ahem… Yes, exactly. 🙂 I guess what I really meant was. “If you have both your old library and your new one in Syncthing…” Thanks for the clarification!
