Title: Rsync failure please help...

I am only trying to mirror the binary-sparc and binary-i386 of woody... I keep get errors..  Any ideas anyone.

Here is the message I get in the rsync log:

building file list ... link_stat \ : No such file or directory
link_stat ftp.us.debian.org::debian/. : No such file or directory
done
wrote 451 bytes  read 20 bytes  942.00 bytes/sec
total size is 0  speedup is 0.00

Here is the actual rsync script:


#! /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=/home/ftp/debian/
# RSYNC_HOST is the site you have chosen from the mirrors file.
# (http://www.debian.org/mirror/mirrors_full)

RSYNC_HOST=ftp.us.debian.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=debian/

EXCLUDE="--exclude binary-alpha/ \
  --exclude binary-arm/ \
  --exclude binary-m68k/ \
  --exclude binary-powerpc/ \
  --exclude binary-ia64/ \
  --exclude binary-mips*/ \
  --exclude binary-hppa/ \
  --exclude binary-sh/ \
  --exclude binary-s390/ \
  --exclude *_alpha.deb \
  --exclude *_arm.deb \
  --exclude *_m68k.deb \
  --exclude *_powerpc.deb \
  --exclude *_ia64.deb \
  --exclude *_hppa.deb \
  --exclude *_sh.deb \
  --exclude *_mips.deb \
  --exclude *_mipsel.deb \
  --exclude *_s390.deb \
  --exclude stable/ \
  --exclude testing/ \
  --exclude unstable/ \
  --exclude source/ \
  --exclude /contrib/ \
  --exclude /non-free/ \
 "
HOSTNAME=`hostname -f`

LOCK="${TO}/Archive-Update-in-Progress-${HOSTNAME}"
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 exists
  exit 1
fi

trap "rm -f $LOCK > /dev/null 2>&1" exit
set +e
rsync --recursive --links --hard-links --times --verbose --compress --delete \
     --exclude "Archive-Update-in-Progress-${HOSTNAME}" \
     --exclude "project/trace/${HOSTNAME}" \
     $EXCLUDE \
     $RSYNC_HOST::$RSYNC_DIR $TO > rsync.log 2>&1
#date -u > "${TO}/project/trace/${HOSTNAME}"
savelog rsync.log > /dev/null 2>&1

Reply via email to