Re: rpms again

Anthony Mendoza <[email protected]>
Newsgroups gmane.network.up2date.current.devel
Organization Embrace Networks
Message-ID <[email protected]>
jeremy johnson wrote:
<snip>
 > Also whats a good way
> to check for errata updates on a daily basis and get only the versions you
> dont already have?  The current method that im using is just downloading the
> whole site at midnight, which works but is not really the best method.  Any
> suggestions would be welcomed.
I use rsync with the following script:

# set the options
INPUT=$1
RSYNC="/usr/bin/rsync --stats --exclude-from=/fs1/rsync.excludes -rutz 
--delete --
delete-excluded"
OPTS=
if [ "$INPUT" = "debug" ] ; then
         OPTS="-n --progress"
fi
#
# mirror the files
#
$RSYNC $OPTS rsync://carroll.cac.psu.edu/redhat-redhat /fs1/mirror/redhat

You'd obviosuly modify the flags and paths for your situation..

also, this is for the whole redhat archive, I believe the site has 
redhat-updates if you're just looking for updates..  you should modify 
the exclude path to dump any versions you don't care about.  For your 
reference, I've attached my exclude (as it took me a bit to get the 
regexpressions with rsync working):

**alpha/
[1-6].*/
**sparc/
other_prod/
SRPMS/
s390/
s390x/
de/
emea/
es/
fr/
it/
kr/
ja/
ia64/
acs/
ccvs/
gnupro/
interchange/
ibm/
tux/
beta/
rawhide/
linux/7.0/
linux/updates/7.0/en/powertools/
linux/updates/7.0/en/os/alphav6/
-- 
Anthony Mendoza
IT & Customer Support
[email protected]
t: 408-585-5612 / c: 408-314-5038
p: 888-886-7205 / f: 208-247-5501
smime.p7s (application/x-pkcs7-signature, 3.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.