rsync from linux server to ibook woes

juu801

Registered
I have a media server that runs ClarkConnect. (It's a Fedora Core 2 derivative.) I use rsync to make backups of home, web, and music driectories nightly. It works as expected and only copies new or updated files.
I recently upgraded the HDD in my iBook to 120GB and decided I wanted to carry my music collection on it. I mounted the music share and tried the following command:
Code:
rsync -Rv /Volumes/music/ ~/Music/iTune/iTunes\ Music
Instead of updating the directory with new files it copies everything. I have approximately 35GB of music. It takes forever each time I want to update the music on my iBook.
Is this related to the attributes HFS+ adds to files? Any suggestions?
 
Since I haven't gotten any replies maybe I didn't explain well enough. I'll try in different words.

For my nightly backups I have scripts on my Linux server that run
Code:
rsync -av --delete $source $destination
It's a little more complicated than that but you get the idea. The source is either my home, music, or video directories and the destination is there counterpart on an external USD HDD. On the Linux box this looks for differences between the directories. If something is in the source and not the destination it is copied to the destination. If something is in the destination and not the source it is deleted from the destination.

I would like to keep my iBook's music collection in sync with my server's collection. I mount the Linux server's music share on my iBook. I then try to to use the command from my first post. You may notice the the flags are different. I use -av on my server because this keeps things like owner, group, timestamp intact. I don't need these to be the same on the iBook and think that if they were it may screw up rights since the uid may not be the same on both. So I use -Rv which should simply be recursive and verbose. Those flags seem to work but the issue is rsync seems to find a difference in all the files because instead of copyng new files from the server to the iBook it copies everything.

Here's another reach for an answer: I have folders and files with special characters in the name. Could it be that Linux and OS X handle these differently?
 
I assume you mean "rsync -rv" (recursive) and not "rsync -Rv" (relative paths)?

In any case try adding the "t" flag to preserve timestamps and it seems to behave more as you'd expect:

Code:
rsync -rtv /Volumes/blah/foo/bar/ ~/TEST/foor/bar/
 
Yes, I meant -r not -R. I find myself always checking the man page before I use rsync to double check. I didn't have my iBook handy when posting so I took a guess.

I haven't had time to test the -t flag. When I do I'll post my results. Thanks for the suggestion.
 
It looks like that works. It still copies over a few files that I can't think of any reason they would have been updated. But it doesn't copy the entire 30GB.

Now I just need to see if I can get amarok installed so that I can have a music player that keeps track of my collection.
 
Back
Top