I have my iTunes library sync’ed among my three computers using rsync.
- PC with my initial music collection (Win7)
- Synology DiskStation DS210 (tiny Linux-based server)
- Macbook (Mac OSX)
On windows, I installed cwrsync. Then I modified the provided .cmd batch file to push to the DiskStation:
On OSX, I pull the music:
# rsyncs remote music library to local copy
cd ~/Music/iTunes/iTunes Music/Music
rsync --iconv=UTF8-MAC,UTF8 -Xavzh --progress --delete --exclude '@eaDir' root@DiskStation:/volume1/Shared/music/Adam/ .
Initially this behaved strangely - unicode characters with accents messed up the sync. It took some googling, but I finally stumbled on the answer. Mac does something weird with UTF8. You need an “iconv” parameter in there (note it in the command above).
You can do this without having to manually enter passwords, if you get your .ssh keys set up correctly. You create a public/private keypair using ssh-keygen, keeping the private key in your local ~/.ssh/, and appending the public key to the remote ~/.ssh/authorized_keys file. A post on how to do it is here.
I’ll just add you can probably rsync as a regular, non-root user. But you just have to make sure all the permissions & ownership update correctly. Things can get a bit screwy between Win7, Linux, and OSX.
I’m moving over to an iMac soon. I wonder whether I’ll give up all this manual syncing for iCloud?
-
Bob Jonst
-
AdamDKlein