> 
> 
> Anyone here know if redhat linux updates can be rsynced?
> 
> If so, is it necessary to have rsh installed.
> 
> I guess what I really need is to see the commands necessary to connect
> to a redhat `updates' ftp site with rsync.  If it is even possible.
> 

I have a script that I run with cron each day to get updates from a 
redhat mirror site. (It only gets the new files) Almost as good as rsync 
and probably less computation intensive for the mirroring server. The email 
goes to an address which I filter with procmail, take the redhat update messages 
and put them into a hypermail archive, so I have a daily web-based report 
regarding if any redhat updates were recently made available.

[root@pour /root]# more /usr/local/sbin/mirrorupdates 
#!/bin/bash
ncftpget -d /logs/mu ftp.valinux.org /rsync/updates/5.2 
/pub/mirrors/redhat/redhat/updates/5.2/i386/*.rpm
ncftpget -d /logs/mu ftp.valinux.org /rsync/updates/6.0 
/pub/mirrors/redhat/redhat/updates/6.0/i386/*.rpm
ncftpget -d /logs/mu ftp.valinux.org /rsync/updates/6.1 
/pub/mirrors/redhat/redhat/updates/6.1/i386/*.rpm
ncftpget -d /logs/mu ftp.valinux.org /rsync/updates/6.2 
/pub/mirrors/redhat/redhat/updates/6.2/i386/*.rpm
ncftpget -d /logs/mu ftp.valinux.org /rsync/updates/7.0 
/pub/mirrors/redhat/redhat/updates/7.0/i386/*.rpm
cat /logs/mu |grep "Cmd\: RETR" > /logs/mu2
elm [EMAIL PROTECTED] -s "redhat updates" < /logs/mu2
rm -rf /logs/mu /logs/mu2

And then in my rsyncd.conf, I have a section for each version of redhat which I keep 
updates for. Client computers rsync to this each day to get updates. It is very 
reliable. 
All of my redhat servers have a /updates directory which contains RPMs and other 
things 
which I want to distribute but not yet install, kernel tarballs, new scripts, etc...

[updates7.0]
path= /rsync/updates/7.0/
use chroot = true
max connections = 20
lock file = /var/log/rsyncd.7.0.lockfile
read only = yes
list = no
uid = rsync
gid = rsync
hosts deny = *
hosts allow = *.midcoast.com *.maine.nu 10.0.0.0/8 192.168.0.0/16  206.26.224.0/21 
169.244.143.19


Reply via email to