Hello list. I'm almost getting exhausted, thus I have to bother you people to get some help. I simply want to sync my "iTunes Music" folder from my MacBook over to my NAS. The scenario is like this: source path: "/Users/bonny/Music/iTunes/iTunes Music/" (in here there are all the subfolders I want to sync over to the NAS); destination: "rsync://root at 192.168.1.100/musica/iTunes Music/" What I did is to copy the stuff over "by hand" (tens of GB!!!)... now I sometimes add new music to my iTunes Library, therefore I don't want to sync all stuff, just add to the NAS what's been added on my MacBook and delete on the NAS what has gone from my MacBook. I tried many many ways, but without any success!! I tried to play around with trailing slashes, but I got tired while not succeeding :-/ My best guess is following: rsync -ahzv --delete --progress --numeric-ids --ignore-errors "/Users/bonny/Music/iTunes Music" "rsync://root at 192.168.1.100/musica/iTunes Music" I'd leave *both* paths *without* trailing slash... is this OK? Please anymbody help me in getting things working, I don't want to do everything again from the beginning (rsyncing from zero)... Thanks, Flavio.
On Sat, 2009-10-31 at 17:06 +0100, Boniforti Flavio wrote:> I'm almost getting exhausted, thus I have to bother you people to get some help.That's a non sequitur. Check http://www.catb.org/~esr/faqs/smart-questions.html#id382403 .> I simply want to sync my "iTunes Music" folder from my MacBook over to my NAS. > The scenario is like this: > > source path: "/Users/bonny/Music/iTunes/iTunes Music/" (in here there > are all the subfolders I want to sync over to the NAS); > destination: "rsync://root at 192.168.1.100/musica/iTunes Music/" > > What I did is to copy the stuff over "by hand" (tens of GB!!!)... now > I sometimes add new music to my iTunes Library, therefore I don't want > to sync all stuff, just add to the NAS what's been added on my MacBook > and delete on the NAS what has gone from my MacBook. > > I tried many many ways, but without any success!!What is the nature of the failure? Files ending up in the wrong place, or rsync not seeing the old files and wanting to retransfer everything, or not connecting to the rsync daemon at all, or what??> I tried to play around with trailing slashes, but I got tired while > not succeeding :-/Putting a trailing slash on the source should have worked. (Whether there is one on the destination shouldn't matter.) -- Matt
> rsync -ahzv --delete --progress --numeric-ids --ignore-errors > "/Users/bonny/Music/iTunes Music" > "rsync://root at 192.168.1.100/musica/iTunes Music"I am guessing that your iTunes Music folder is well 50MB. As such, testing with a smaller directory will reduce the time it takes for rsync to run. It will also allow you to use the verbose options while keeping the output to a minimum. So, why not setup a test environment? Make a test directory on your MacBook (eg: /tmp/mytestsrc) and also create a test destination directory on the NAS. Next, make some directories within the source test directory on your MacBook. Then, manually populate these source directories with some test files. Finally, try to copy the test source directory over to your NAS device using rsync. If this initial sync works, then I suggest that you remove some items to the test source directory, run rsync a second time and check the results are as you expect. If you are not able to get this test case working, then post the command and output from the rsync command to the list. Hopefully someone will be able to assist you with why it is not working. I would also suggest that you add the option "-vvv" when you run rsync so you are provided with more feed back while rsync is running. Hence the test setup. Finally, I recommend that once you are able to see the files changing, that you use "ls -l" to check the ownership, timestamps and permissions are being transferred correctly. Hope this helps. --- This email is protected by LBackup, an open source backup solution : http://www.lbackup.org