1. pon esta linea en el cron-daily de root: -0 20 * * * /usr/local/sbin/rsync.sh > /root/rsync.log 2. En /usr/local/sbin/rsync.sh tienes las llamadas a los scripts que actualizan las diferentes distribuciones y versiones de las distros que uses en tu casa/empresa/etc Por ejemplo, /usr/local/sbin/rsync.sh : ==============[CODE]================ #! /bin/bash # Script to download Mandrake & Red Hat updates to our internal network. # This should save us bandwith during regular working hours. # It will also shorten the update time, as all packages are in the internal network. # by Sinner from the Prairy, 2002 # sinnerbofh@gmail.com # This script is called by crond. # When launched, this script calls the individual scripts # that syncronize UpdateServer with REHL & MDK update servers, # one after the other. echo ---------------------------------- echo Syncing Fedora Legacy for RH 7.3 echo ---------------------------------- /usr/local/sbin/syncRH73.sh eco ---------------------------------- echo Syncing CentOS-3 echo ---------------------------------- /usr/local/sbin/rsync-centos34.sh o ---------------------------------- echo Syncing CentOS-4 echo ---------------------------------- /usr/local/sbin/rsync-centos40.sh ================[/CODE]================== 3. Ahora,necesitamos decidir que directorios remotos vamos a mirrorear. Para ello, recreamos la estructura remota en nuestro server local y empezamos el rsync. Por ejemplo, /usr/local/sbin/rsync-centos34.sh : ==============[CODE]================ #!/bin/sh # # Sync current CentOS version on local ftp mirror # by Sinner from the Prairy, 2002 # sinnerbofh@gmail.com # This script is licensed under the GPL license. # # Changelog # 20050228 First Working script CENTOSBASE='ftp://ftp.linux.ncsu.edu/pub/centos/3.4/' ARGS=' --no-chmod --no-mtimes --no-chown -v ' LOCALBASE='/var/ftp/pub/centos/centos-3/3.4/' #mirrordir --no-chmod --no-mtimes --no-chown -v http://mirror.centos.org/centos-3/3.4/os/i386/images/ . # addons/ docs/ extras/ os/ testing/ # contrib/ ERAD/ isos/ scripts/ updates/ # mirroring: addons CENTOSDIR=$CENTOSBASE for LOCAL in 'addons' 'contrib' 'extras' 'os' 'updates' do /usr/bin/mirrordir $ARGS $CENTOSDIR$LOCAL/i386/RPMS $LOCALBASE$LOCAL/i386/RPMS # Uncomment me for debugging #echo /usr/bin/mirrordir $ARGS $CENTOSDIR$LOCAL $LOCALBASE$LOCAL done for LOCAL in 'addons' 'contrib' 'extras' 'os' 'updates' do /usr/bin/mirrordir $ARGS $CENTOSDIR$LOCAL/i386/headers $LOCALBASE$LOCAL/i386/headers # Uncomment me for debugging #echo /usr/bin/mirrordir $ARGS $CENTOSDIR$LOCAL $LOCALBASE$LOCAL done for LOCAL in 'docs/' 'scripts/' do /usr/bin/mirrordir $ARGS $CENTOSDIR$LOCAL $LOCALBASE$LOCAL # Uncomment me for debugging #echo /usr/bin/mirrordir $ARGS $CENTOSDIR$LOCAL $LOCALBASE$LOCAL done ================[/CODE]================== Y yasta.