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

Re: Sync with anonftpsync



Martin Bagge / brother escribió:
On Fri, 21 Nov 2008, Carlos Bergero wrote:

I have maintained for a few years a mirror for i386 and for security updates without much trouble. Now I found that when rsync is not copying some of the files in the /debian/dists/"distribution" (/debian/dist/i386 or /debian/dist/lenny). in particular, It's not replicating the Contents-"Architecture".gz files, for any architecture. I was wondering if I had done something wrong in the configuration of the file. I basically change only the things it sounded.

can you post a .diff of the config? or something lightweight so someone can look at your changes.

I run the new ftpsync script and Contents* i /dists/lenny is all there, look: ftp://debian.bsnet.se/debian/dists/lenny/

regarding a i386 dists directory you probably just mistyped there?


22c22
< TO=
---
> TO="/home/debian/export/debian"
28c28
< RSYNC_HOST=
---
> RSYNC_HOST="ftp.es.debian.org"
34c34
< RSYNC_DIR=debian
---
> RSYNC_DIR="debian"
39c39
< LOGDIR=
---
> LOGDIR="/var/log/mirror"
57c57,59
< ARCH_EXCLUDE=
---
> #ARCH_EXCLUDE=
> #"alpha arm armel hppa hurd-i386 ia64 m68k mipsel mips s390 sparc"
> 		
80c82,93
< EXCLUDE=
---
> #EXCLUDE=#"\
> #	--exclude source/ --exclude *_alpha.deb --exclude *_arm.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 disks-alpha/ --exclude disks-arm/ \
> #	--exclude disks-ia64/ --exclude disks-m68k/ --exclude disks-mips*/  \
> #	--exclude disks-powerpc/  --exclude disks-s390/  --exclude disks-sparc/ \
> #	--exclude source/ \
> #	--exclude installer-alpha/ --exclude installer-ia64/ --exclude installer-m68k/ \
> #	--exclude installer-mips/ --exclude installer-powerpc/ --exclude installer-sparc/ "
> 
86c99
< MAILTO=
---
> MAILTO="ministrator@fcien.edu.uy"
111,112c124
< if [ -z "$TO" ] || [ -z "$RSYNC_HOST" ] || [ -z "$RSYNC_DIR" ] || [ -z
< # "$LOGDIR" ]; then
---
> if [ -z "$TO" ] || [ -z "$RSYNC_HOST" ] || [ -z "$RSYNC_DIR" ] || [ -z  "$LOGDIR" ]; then
136,154c148,166
< for ARCH in $ARCH_EXCLUDE; do
< 	EXCLUDE=$EXCLUDE"\
< 		--exclude binary-$ARCH/ \
< 		--exclude disks-$ARCH/ \
< 		--exclude installer-$ARCH/ \
< 		--exclude Contents-$ARCH.gz \
< 		--exclude Contents-$ARCH.diff/ \
< 		--exclude arch-$ARCH.files \
< 		--exclude arch-$ARCH.list.gz \
< 		--exclude *_$ARCH.deb \
< 		--exclude *_$ARCH.udeb "
< 	if [ "$ARCH" = "source" ]; then
< 		SOURCE_EXCLUDE="\
< 		--exclude source/ \
< 		--exclude *.tar.gz \
< 		--exclude *.diff.gz \
< 		--exclude *.dsc "
< 	fi
< done
---
> #for ARCH in $ARCH_EXCLUDE; do
> #	EXCLUDE=$EXCLUDE"\
> #		--exclude binary-$ARCH/ \
> #		--exclude disks-$ARCH/ \
> #		--exclude installer-$ARCH/ \
> #		--exclude Contents-$ARCH.gz \
> #		--exclude Contents-$ARCH.diff/ \
> #		--exclude arch-$ARCH.files \
> #		--exclude arch-$ARCH.list.gz \
> #		--exclude *_$ARCH.deb \
> #		--exclude *_$ARCH.udeb "
> #	if [ "$ARCH" = "source" ]; then
> #		SOURCE_EXCLUDE="\
> #		--exclude source/ \
> #		--exclude *.tar.gz \
> #		--exclude *.diff.gz \
> #		--exclude *.dsc "
> #	fi
> #done
157c169,170
< LOGFILE=$LOGDIR/debian-mirror.log
---
> LOGFILE=$LOGDIR/debian-main-mirror.log
> 
175,176c188
< # Note: this requires the findutils find; for other finds, adjust as
< necessary
---
> # Note: this requires the findutils find; for other finds, adjust as necessary
183,184c195
<       echo "stale lock found (not accessed in the last $LOCK_TIMEOUT
< minutes), forcing update!"
---
>       echo "stale lock found (not accessed in the last $LOCK_TIMEOUT minutes), forcing update!"
193a205
> 
199a212,226
> echo "tmp exclude"
> echo "$TMP_EXCLUDE"
> echo "exclude"
> echo "$EXCLUDE"
> echo "source exclude"
> echo "$SOURCE_EXCLUDE"
> echo "host"
> echo "$RSYNC_HOST"
> echo "rsync dir"
> echo "$RSYNC_DIR"
> echo "to"
> echo "$TO"
> echo "log"
> echo "$LOGFILE"
> 
205c232,233
<      $RSYNC_HOST::$RSYNC_DIR/pool/ $TO/pool/ >> $LOGFILE 2>&1
---
>      $RSYNC_HOST::$RSYNC_DIR/pool/ $TO/pool/ >> $LOGFILE 2>&1 
> 
207a236,237
> echo "result $result"
> 
222,223c252
< 	echo "mirroring /pool exited with exitcode" $result | tee -a
< 	$LOGFILE
---
> 	echo "mirroring /pool exited with exitcode" $result | tee -a $LOGFILE

Reply to: