Re: rsync 5.1 base repo question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 2007-12-05 at 21:42 -0500, Robert Moskowitz wrote:
> I have built my repo by copying the content of the ISO images, 
> maintaining the date.
> 
> When I test with:
> 
> rsync -avun rsync://mirrors.kernel.org/centos/5.1/os/i386/ \
> --exclude=debug/ /repos/centos/5.1/os/i386
> 
> the only file listed is:
> 
> CentOS/yum-kernel-module-1.0.4-3.el5.centos.2.noarch.rpm
> 
> Which I did not get from the ISOs.
> 
> but if I leave off the -u option, the list is VERY long.  Why?
> 
> Also do I need to use the --delete option to get rid of rpms replaced 
> with newer versions?
----
man rsync

-u, --update                skip files that are newer on the receiver

it won't copy the files that are the same

--delete   yes

it deletes files that don't exist anymore on server

heavily recommend dag's mrepo...it does all the heavy lifting for you

Craig

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux