[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Mirror Debian



Buenas.

Actualmente me encuentro instalando un mirror debian con ftpsync.
Como indica la documentación, en una primera ejecución de deftpsync.conf como /home/mirror/bin/ftpsync sync:all ---- usuario mirror, he dejado el archivo como se muestra a continuación:

----------------------------------------------------------------------------------------------------------------------

MIRRORNAME=`hostname -f`
TO="/var/mirror/debian/"
RSYNC_PATH="debian"
RSYNC_HOST=ftp.us.debian.org

#RSYNC_USER=
#RSYNC_PASSWORD=
#RSYNC_SSL=false
#RSYNC_SSL_PORT=1873
#RSYNC_SSL_CAPATH=/etc/ssl/certs
#RSYNC_SSL_METHOD=stunnel4

LOGDIR="${BASEDIR}/log"
LOG="${LOGDIR}/${NAME}.log"

#MAILTO="root"
#ERRORSONLY="true"

ERRORSONLY="false"
FULLLOGS="true"

#EXCLUDE=""
#ARCH_EXCLUDE=""

ARCH_INCLUDE="amd64 i386"

#HUB=false
#LOGROTATE=14
#LOCK="${TO}/Archive-Update-in-Progress-${MIRRORNAME}"
# LOCKTIMEOUT=${LOCKTIMEOUT:-3600}
#UPDATEREQUIRED="${TO}/Archive-Update-Required-${MIRRORNAME}"
#UIPSLEEP=1200

#UIPRETRIES=3
TRACE="project/trace/${MIRRORNAME}"

#EXTENDEDTRACE="full"
#TRACEHOST="$(hostname -f)"

RSYNC=rsync

# RSYNC_EXTRA=""
#RSYNC_BW=""

RSYNC_FILTER="--filter=protect_Archive-Update-in-Progress-${MIRRORNAME} --filter=protect_${TRACE} --filter=protect_Archive-Update-Required-${MIRRORNAME}"

RSYNC_OPTIONS="-prltvHSB8192 --timeout 3600 --stats ${RSYNC_FILTER}"

RSYNC_OPTIONS1="--exclude=Packages* --exclude=Sources* --exclude=Release* --exclude=InRelease --exclude=i18n/* --exclude=ls-lR*"

RSYNC_OPTIONS2="--recursive --times --links --hard-links --delete --delete-after --max-delete=40000 --delay-updates --delete --delete-excluded"

# RSYNC_PROXY=
#CALLBACKUSER="archvsync"
#CALLBACKHOST="none"
#CALLBACKKEY="none"
#HOOK1=
#HOOK2=
#HOOK3=
#HOOK4=
#HOOK5=

--------------------------------------------------------------------------------------------------------------

En algunas oportunidades falló el servicio eléctrico y volví a ejecutar el script. Una vez finalizada la descarga de aproximadamente 340GB cambie las siguientes lineas:


ARCH_INCLUDE="amd64 i386" 
a
ARCH_INCLUDE="amd64 i386 source"

y comenté la línea:
##RSYNC_OPTIONS1="--exclude=Packages* --exclude=Sources* --exclude=Release* --exclude=InRelease --exclude=i18n/* --exclude=ls-lR*"

A pesar de esto y de la actual ejecución de los 4 procesos del usuario mirror:

mirror    4667  0.0  0.0   2272   596 ?        Ss   00:18   0:00 /bin/sh -c  /home/mirror/bin/ftpsync sync:all
mirror    4668  0.0  0.1   5340  3112 ?        S    00:18   0:00 /bin/bash /home/mirror/bin/ftpsync sync:all
mirror    4694  0.0  0.2  38820  4320 ?        S    00:18   0:00 rsync --bwlimit=0 -prltvHSB8192 --timeout 3600 --stats --filter=protect_Archive-Update-in-Progress-coloso --filter=protect_project/
mirror    4695  0.2  0.1  40464  3296 ?        S    00:18   0:02 rsync --bwlimit=0 -prltvHSB8192 --timeout 3600 --stats --filter=protect_Archive-Update-in-Progress-coloso --filter=protect_project/


donde 4694 y 4695:

rsync --bwlimit=0 -prltvHSB8192 --timeout 3600 --stats --filter=protect_Archive-Update-in-Progress-coloso --filter=protect_project/trace/coloso --filter=protect_Archive-Update-Required-coloso --exclude=Packages* --exclude=Sources* --exclude=Release* --exclude=InRelease --exclude=i18n/* --exclude=ls-lR* --exclude=.~tmp~/ --include=/dists/**/binary-amd64/ --include=/dists/**/installer-amd64/ --include=/dists/**/Contents-amd64.gz --include=/dists/**/Contents-udeb-amd64.gz --include=/dists/**/Contents-amd64.diff/ --include=/indices/**/arch-amd64.files --include=/indices/**/arch-amd64.list.gz --include=/pool/**/*_amd64.deb --include=/pool/**/*_amd64.udeb --include=/pool/**/*_amd64.changes --include=/dists/**/binary-i386/ --include=/dists/**/installer-i386/ --include=/dists/**/Contents-i386.gz --include=/dists/**/Contents-udeb-i386.gz --include=/dists/**/Contents-i386.diff/ --include=/indices/**/arch-i386.files --include=/indices/**/arch-i386.list.gz --include=/pool/**/*_i386.deb --include=/pool/**/*_i386.udeb --include=/pool/**/*_i386.changes --include=/dists/**/binary-source/ --include=/dists/**/installer-source/ --include=/dists/**/Contents-source.gz --include=/dists/**/Contents-udeb-source.gz --include=/dists/**/Contents-source.diff/ --include=/indices/**/arch-source.files --include=/indices/**/arch-source.list.gz --include=/pool/**/*_source.deb --include=/pool/**/*_source.udeb --include=/pool/**/*_source.changes --include=/dists/**/binary-all/ --include=/dists/**/installer-all/ --include=/dists/**/Contents-all.gz --include=/dists/**/Contents-udeb-all.gz --include=/dists/**/Contents-all.diff/ --include=/indices/**/arch-all.files --include=/indices/**/arch-all.list.gz --include=/pool/**/*_all.deb --include=/pool/**/*_all.udeb --include=/pool/**/*_all.changes --exclude=/dists/**/binary-*/ --exclude=/dists/**/installer-*/ --exclude=/dists/**/Contents-*.gz --exclude=/dists/**/Contents-udeb-*.gz --exclude=/dists/**/Contents-*.diff/ --exclude=/indices/**/arch-*.files --exclude=/indices/**/arch-*.list.gz --exclude=/pool/**/*_*.deb --exclude=/pool/**/*_*.udeb --exclude=/pool/**/*_*.changes ftp.us.debian.org::debian /var/mirror/debian/

rsync --bwlimit=0 -prltvHSB8192 --timeout 3600 --stats --filter=protect_Archive-Update-in-Progress-coloso --filter=protect_project/trace/coloso --filter=protect_Archive-Update-Required-coloso --exclude=Packages* --exclude=Sources* --exclude=Release* --exclude=InRelease --exclude=i18n/* --exclude=ls-lR* --exclude=.~tmp~/ --include=/dists/**/binary-amd64/ --include=/dists/**/installer-amd64/ --include=/dists/**/Contents-amd64.gz --include=/dists/**/Contents-udeb-amd64.gz --include=/dists/**/Contents-amd64.diff/ --include=/indices/**/arch-amd64.files --include=/indices/**/arch-amd64.list.gz --include=/pool/**/*_amd64.deb --include=/pool/**/*_amd64.udeb --include=/pool/**/*_amd64.changes --include=/dists/**/binary-i386/ --include=/dists/**/installer-i386/ --include=/dists/**/Contents-i386.gz --include=/dists/**/Contents-udeb-i386.gz --include=/dists/**/Contents-i386.diff/ --include=/indices/**/arch-i386.files --include=/indices/**/arch-i386.list.gz --include=/pool/**/*_i386.deb --include=/pool/**/*_i386.udeb --include=/pool/**/*_i386.changes --include=/dists/**/binary-source/ --include=/dists/**/installer-source/ --include=/dists/**/Contents-source.gz --include=/dists/**/Contents-udeb-source.gz --include=/dists/**/Contents-source.diff/ --include=/indices/**/arch-source.files --include=/indices/**/arch-source.list.gz --include=/pool/**/*_source.deb --include=/pool/**/*_source.udeb --include=/pool/**/*_source.changes --include=/dists/**/binary-all/ --include=/dists/**/installer-all/ --include=/dists/**/Contents-all.gz --include=/dists/**/Contents-udeb-all.gz --include=/dists/**/Contents-all.diff/ --include=/indices/**/arch-all.files --include=/indices/**/arch-all.list.gz --include=/pool/**/*_all.deb --include=/pool/**/*_all.udeb --include=/pool/**/*_all.changes --exclude=/dists/**/binary-*/ --exclude=/dists/**/installer-*/ --exclude=/dists/**/Contents-*.gz --exclude=/dists/**/Contents-udeb-*.gz --exclude=/dists/**/Contents-*.diff/ --exclude=/indices/**/arch-*.files --exclude=/indices/**/arch-*.list.gz --exclude=/pool/**/*_*.deb --exclude=/pool/**/*_*.udeb --exclude=/pool/**/*_*.changes ftp.us.debian.org::debian /var/mirror/debian/


la carpeta TO="/var/mirror/debian/" no continúa llenándose y pasan días en el mismo estado; en este caso he terminado los procesos y he vuelto a ejecutar ftpsync, llenándose unos megas dicha carpeta y de nuevo vuelve al mismo estado: sin el evento definitivo para completar la descarga.

De antemano agradecido por la ayuda que se me pueda brindar.






Libre de virus. www.avast.com

Reply to: