Almost desperate on rsync from macbook to NAS

View: New views
5 Messages — Rating Filter:   Alert me  

Almost desperate on rsync from macbook to NAS

by Boniforti Flavio-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@.../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@.../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.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: Almost desperate on rsync from macbook to NAS

by Matt McCutchen-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@.../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

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: Almost desperate on rsync from macbook to NAS

by Boniforti Flavio-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/31 Matt McCutchen <matt@...>:
> 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 .

Yep, sorry... I really just wanted to shout it out...

[cut]

> 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??

Well, actually in my last attempt, files are getting deleted (I used
the -n switch to not waste my actually transferred data) on the
destination path...

>> 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.)

OK, I'll retry with trailing path on source and if it doesn't matter
whether or not there's also one in the destination path, I'll leave it
as it is (*with* trailing slash)...

Get back to you soon, as I get some more trials done.

Thanks so far,
F.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Parent Message unknown Re: Almost desperate on rsync from macbook to NAS

by Henri S :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> rsync -ahzv --delete --progress --numeric-ids --ignore-errors
> "/Users/bonny/Music/iTunes Music"
> "rsync://root@.../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







--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: Almost desperate on rsync from macbook to NAS

by Boniforti Flavio-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/4 henri <henri@...>:

>
>> rsync -ahzv --delete --progress --numeric-ids --ignore-errors
>> "/Users/bonny/Music/iTunes Music"
>> "rsync://root@.../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.

I finally managed to get it done:

rsync -av --delete "/Users/bonny/Music/iTunes/iTunes Music/"
"rsync://root@.../musica/iTunes Music/"

I think I was missing the trailing slash on the source path...

That's it, now it's working!
Thanks,
F.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html