2008/4/22 Ramón Neira Galañena <[EMAIL PROTECTED]>: > Julio Tejera <[EMAIL PROTECTED]> escribió: > > > rsync no te funciona ? > > Estube probando pero no hay manera que me pinche por debajo de proxy. > este es el error que me esta dando: > > rsync: failed to connect to msync.centos.org: No route to host (113) > rsync error: error in socket IO (code 10) at clientserver.c(104) > [receiver=2.6.9] > Si tu proxy permite CONNECT al 873, la configuración por defecto del squid lo permite, pues fija la variable RSYNC_PROXY y ya está.
Te pego al final el script que utilizamos en swl.cu, con agregarle al inicio esta linea deberia bastar: export RSYNC_PROXY=proxy.midominio.cu:3128 #! /bin/sh set -e # This script originates from http://www.debian.org/mirror/anonftpsync # Note: You MUST have rsync 2.0.16-1 or newer, which is available in slink # and all newer Debian releases, or at http://rsync.samba.org/ # Set the variables below to fit your site. You can then use cron to have # this script run daily to automatically update your copy of the archive. # Don't forget: # chmod 744 anonftpsync # TO is the destination for the base of the Debian mirror directory # (the dir that holds dists/ and ls-lR). TO=/srv/ftp/centos/5/updates/i386/ LOCKDIR=$TO # RSYNC_HOST is the site you have chosen from the mirrors file. # (http://www.debian.org/mirror/list-full) RSYNC_HOST=msync.centos.org # RSYNC_DIR is the directory given in the "Packages over rsync:" line of # the mirrors file for the site you have chosen to mirror. RSYNC_DIR=CentOS/5/updates/i386/ # EXCLUDE is a list of parameters listing patterns that rsync will exclude. # The following example would exclude mostly everything: #EXCLUDE="\ # --exclude binary-alpha/ --exclude binary-arm/ --exclude binary-i386/ \ # --exclude binary-m68k/ --exclude binary-powerpc/ --exclude binary-sparc/ \ # --exclude binary-ia64/ --exclude binary-mips*/ --exclude binary-hppa/ \ # --exclude binary-sh/ --exclude binary-s390/ \ # --exclude binary-hurd-i386/ \ # --exclude *_alpha.deb --exclude *_arm.deb --exclude *_i386.deb \ # --exclude *_m68k.deb --exclude *_powerpc.deb --exclude *_sparc.deb \ # --exclude *_ia64.deb --exclude *_hppa.deb --exclude *_sh.deb \ # --exclude *_mips.deb --exclude *_mipsel.deb --exclude *_s390.deb \ # --exclude *_hurd-i386.deb \ # --exclude disks-alpha/ --exclude disks-arm/ --exclude disks-i386/ \ # --exclude disks-ia64/ --exclude disks-m68k/ --exclude disks-mips*/ \ # --exclude disks-powerpc/ --exclude disks-s390/ --exclude disks-sparc/ \ # --exclude stable/ --exclude testing/ --exclude unstable/ \ # --exclude source/ \ # --exclude *.orig.tar.gz --exclude *.diff.gz --exclude *.dsc \ # --exclude /contrib/ --exclude /non-free/ \ # " # With a blank EXCLUDE you will mirror the entire archive. # There should be no need to edit anything below this point, unless there # are problems. #-----------------------------------------------------------------------------# # Note: on some non-Debian systems, hostname doesn't accept -f option. # If that's the case on your system, make sure hostname prints the full # hostname, and remove the -f option. If there's no hostname command, # explicitly replace `hostname -f` with the hostname. HOSTNAME=`hostname -f` LOCK="${LOCKDIR}Arch-Up-in-Progress-Updates-Centos5-${HOSTNAME}" # Get in the right directory and set the umask to be group writable # HOME=/var/log/mirror cd $HOME umask 002 # Check to see if another sync is in progress if lockfile -! -l 43200 -r 0 "$LOCK"; then echo ${HOSTNAME} is unable to start rsync, lock file centos5 ups n progress exists exit 1 fi # Note: on some non-Debian systems, trap doesn't accept "exit" as signal # specification. If that's the case on your system, try using "0". trap "rm -f $LOCK > /dev/null 2>&1" exit set +e rsync --recursive --links --hard-links --times --verbose --compress --delete \ $EXCLUDE \ $RSYNC_HOST::$RSYNC_DIR $TO > centos5-updates.log 2>&1 date -u > "${LOCKDIR}/centos5-updates-${HOSTNAME}" # Note: if you don't have savelog, use any other log rotation facility, or # comment this out, the log will simply be overwritten each time. savelog centos5-updates.log > /dev/null 2>&1 slds PD: Si no te llega bien formateado el script, dime y te lo mando como adjunto a tu privado. -- Carlos Javier Habana, CUBA _______________________________________________ Cancelar suscripción https://listas.softwarelibre.cu/mailman/listinfo/linux-l Buscar en el archivo http://listas.softwarelibre.cu/buscar/linux-l
