Tuesday, October 19, 2010

Copy iTunes music to SMB drive

Using rsync it is possible to copy only changed files to the BT Home Hub, once it's mounted using Finder->Connect To Server...

This command does it:

rsync -v -a -h --progress --delete --size-only --no-times /Users/Shared/iTunes\ Music/ /Volumes/Disk_a1/Music/

However, there is a problem in that the Home Hub, like all SMB servers I think, thinks you've made a typo when you use all capitals, but rsync is case sensitive.

This command line should do a fuzzy match (not clear from man file what that is precisely, but it looks for similar file names and sizes I gather), and delete files only after the transfer.

rsync -v -a -h --progress --delete-after --fuzzy --size-only --no-times /Users/Shared/iTunes\ Music/ /Volumes/Disk_a1/Music/

No comments: