Mac Photos Library to Windows - lots of invalid filename errors

Hi all,

I’m setting up Syncthing to keep a local copy of my MacBook Air files on a Windows PC.

I’ve got the Mac folders set to Send Only and the Windows folders to Receive Only, and most of it is working very nicely.

I’ve encountered the odd Mac filename that Windows doesn’t like, such as : or |, and for normal documents I’ve simply renamed the source file on the Mac.

The big exception is my Photos Library.photoslibrary.

I’m getting hundreds of failed items from inside the Photos library, particularly within its internal/photosmessagesbackdropdescriptors structure. Syncthing reports that the filenames contain the Windows-reserved | character.

I don’t want to rename anything inside the Photos library package because these are Apple-managed internal files and I don’t want to risk corrupting the library.

Am I right in thinking that the sensible solution is simply to exclude Photos Library.photoslibrary from Syncthing and back up the Photos library separately?

If so, what ignore pattern would you recommend?

Or is there a better Syncthing-supported way of handling a macOS Photos library when the receiving machine is Windows?

Thanks.

I don’t think you can “back up” that Photos library to Windows in a way that makes sense, i.e. that could be restored if you lost the original. I’d suggest iCloud or Time Machine. You could have Syncthing copy the originals folder and technically it’s some form of backup, but you lose the original filenames and any kind of structure since it’s all filed under guids.