Shadowing iTunes Music on NWS

I have an iMac running the Music app. Its Music media is stored at ~/Music/iTunes/iTunes Media/Music
I want to have a copy of all the music on network attached storage at device/Music/Music
Aside from maintaining a backup, I need my Sonos system to see the library and it cannot view the Mac itself.
Using a modification of something Mr. Noodle cooked up in 2013, I watch iTunes Media folder and have the followiing rule
As you may know, the Music folder is organized into artist subfolders which are in turn organized into albums that themselves contain MP3 and MP4 files. The rule is replicating all the artist folders, but it stops there. It appears to attempt to sync albums and files, but it fails with this error
It may be that rsync is the source of the issue or that it is unreliable against a Synology host. It sounds like it may be losing its connection. But if we can get this to work, I'm sure others could use it.
I want to have a copy of all the music on network attached storage at device/Music/Music
Aside from maintaining a backup, I need my Sonos system to see the library and it cannot view the Mac itself.
Using a modification of something Mr. Noodle cooked up in 2013, I watch iTunes Media folder and have the followiing rule
if all the following conditions are met
Name is Music
Kind is Folder
If any of the following conditions are met for the current file or folder
Date Last Modified is after Date Last Matched
If any of the following conditions are met for any of its subfiles or subfolders
Date Last Modified is after Date Last Matched
Sync into folder music
As you may know, the Music folder is organized into artist subfolders which are in turn organized into albums that themselves contain MP3 and MP4 files. The rule is replicating all the artist folders, but it stops there. It appears to attempt to sync albums and files, but it fails with this error
rsync: [sender] write error: Broken pipe (32)
rsync error: error in socket IO (code 10) at io.c(820) [sender=3.1.2]
== End sync output ==
2022-08-09 20:33:07.876 hazelworker[7114] [Error] Could not sync file/folder: Could not sync file/folder at Music to /Volumes/music/Music.
2022-08-09 20:33:07.876 hazelworker[7114] Sync returned error status: 10
It may be that rsync is the source of the issue or that it is unreliable against a Synology host. It sounds like it may be losing its connection. But if we can get this to work, I'm sure others could use it.