Mirror de Debian
Hola listeros...
Estoy haciendo un mirror de debian, con el script que adjunto y parece
que funciona, salvo por el pequeño detalle de que me pide la clave de
root de la máquina de la que hago el rsync. Imagino que algo estoy
haciendo mal, pero no sé exactamente qué.
El mensaje de error es este:
io timeout after 300 seconds - exiting30
rsync error: timeout in data send/receive (code 30) at io.c(85)
rsync: connection unexpectedly closed (840380 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)
root@ftp.de.debian.org's password: io timeout after 300 seconds -
exiting
rsync error: timeout in data send/receive (code 30) at io.c(85)
root@ftp.de.debian.org's password: io timeout after 300 seconds -
exiting
rsync error: timeout in data send/receive (code 30) at io.c(85)
root@ftp.de.debian.org's password:
Muchas gracias por vuestra atención.
--
.''`. After all, only the mediocre are always at their best.
: :' : -- Jean Giraudoux
`. `' Proudly running Debian GNU/Linux Sid (2.4.18 + Ext3)
`- www.amayita.com www.malapecora.com www.chicasduras.com
#!/bin/bash
LOGFILE=/var/log/debian_mirror.log
dir=/var/www/mirror/
dir_nonus=/var/www/mirror-non-US/
host=ftp.de.debian.org
#host=http.us.debian.org
host_nonus=ftp.de.debian.org
#host_nonus=non-us.debian.org
MAIN_MIRROR_CMD="debmirror $dir -p --source --host=$host --method rsync --root=:debian --dist=sid --section=main,contrib,non-free --arch=i386"
NONUS_MIRROR_CMD="debmirror $dir_nonus --source --host=$host_nonus --method rsync --root=debian-non-US --dist=sid/non-US --section=main,contrib,non-free --arch=i386"
[ -x /usr/bin/debmirror ] || exit 0
echo "[" `date` "]: Starting main mirror" >> $LOGFILE;
until $MAIN_MIRROR_CMD ;
do
echo "[" `date` "]: Restarting main mirror" >> $LOGFILE;
done
echo "[" `date` "]: Ended main mirror" >> $LOGFILE;
echo "[" `date` "]: Starting non-US mirror" >> $LOGFILE;
until $NONUS_MIRROR_CMD ;
do
echo "[" `date` "]: Restarting non-US mirror" >> $LOGFILE;
done
echo "[" `date` "]: Ended non-US mirror" >> $LOGFILE;
Reply to: