> I'm a little slow but I just found this amazing
> application called rsync ; )
Awesome, isn't it?
> I was just wondering if the following command
> is the correct way to use this to the fullest
> effect.
> rsync -avr
> ftp.sunet.se::pub/Linux/distributions/mandrake-devel/cooker/
> /mnt/Cooker/
>
> Do I need the -r flag or -u and -t flags? Will
> these speed up the rsync transfer? I also
> notice rmdir messages for : directory not
> empty. Do I need the --force option or can I
> ignore them?
-a includes both -t and -r, so specifying them
individually is useless.
-u should never be an issue, and if it is, you
may have a problem. The remote file should
always be newer or the same as the local file. I
wouldn't use this.
The one flag I find useful is --delete. If a
file isn't on the site anymore, it gets removed
from your local copy. That way you don't have 50
different versions of initscripts*.rpm (not that
there's a problem with having lots of initscripts
packages, I mean, Chmou and Pixel put a lot of
work into those..).
I also never want to see a src.rpm on my local
machine. I don't have the drive space for them.
So... I --exclude "*.src.rpm".
Put it all together, and it looks like this:
rsync -av --delete --exclude "*.src.rpm" \
ftp.sunet.se::Mandrake-devel/cooker \
/mirror/mandrake/cooker
I do the same for crypto and updates as well.
Don Head [[EMAIL PROTECTED]]
Linux Mentor, LCA, Network+ [1 314 692-1942]
Wave Technologies, Inc. [1 800 826-4640 x1942]
[AIM - Don Wave][ICQ - 18804935][Yahoo - Don_Wave]