Re: occasional error on ftp.cz.debian.org
Dne Sun, Nov 05, 2006 at 01:55:36PM +0100, Adam Lackorzynski napsal:
> They should first pull the debs, then update the Packages* files, then
> delete. --delete-after --delay-updates to rsync should do the trick.
> I'm CC'ing the admins.
Thank you for the report, I will check it, we are using oficial mirror
script, which suggest only --delete-after:
#! /bin/sh
set -e
. $HOME/ftpsync.conf
export RSYNC_PASSWORD
HOSTNAME=ftp.debian.cz
LOCK="${TO}/Archive-Update-in-Progress-${HOSTNAME}"
# Get in the right directory and set the umask to be group writable
#
cd $HOME
umask 002
# Check to see if another sync is in progress
if lockfile -! -l 43200 -r 0 "$LOCK"; then
echo ${HOSTNAME} unable to start rsync, lock file exists
exit 1
fi
trap "rm -f $LOCK > /dev/null 2>&1" exit
set +e
rsync -4 --recursive --links --hard-links --times --verbose --compress
--delete --delete-after \
--exclude "Archive-Update-in-Progress-${HOSTNAME}" \
--exclude "project/trace/${HOSTNAME}" \
$EXCLUDE \
$RSYNC_USER@$RSYNC_HOST::debian $TO > /var/log/rsync/ftp.log 2>&1
date -u > "${TO}/project/trace/${HOSTNAME}"
savelog -c 30 /var/log/rsync/ftp.log > /dev/null 2>&1
also the script is taken from
http://www.debian.org/mirror/ftpsync
the only diffence is using -4, becouse we have full IPv6 connectity and it
caused problem on master, when we have downloaded files over IPv6.
cheers
dan
Reply to: