Gentoo Archives: gentoo-mirrors

From: "吴沁凡" <wuqinfan@×××××.com>
To: gentoo-mirrors@l.g.o
Subject: [gentoo-mirrors] about setting up a gentoo source mirror
Date: Mon, 25 May 2009 13:02:14
Message-Id: 5d20768c0905250602xd7e6b3erbc1eeb3902382a91@mail.gmail.com
I use the following script to set up a gentoo source mirror:

#!/bin/bash

# rsync gentoo distfiles

RSYNC="/usr/bin/rsync"
OPTS="--verbose --recursive --links --perms --times -D --delete
--timeout=300"
SRC="rsync://ftp.ussg.iu.edu/gentoo-distfiles"
DST="/opt/matrix/Anonymous/mirror/gentoo"

LOGFILE="rsync-gentoo-distfiles.log"

echo `date` >> $LOGFILE 2>&1
echo "Starting rsync distfiles..." >> $LOGFILE 2>&1

${RSYNC} ${OPTS} ${SRC} ${DST} >> $LOGFILE 2>&1

echo "rsync distfile end. ("`date`")" >> $LOGFILE 2>&1
echo "" >> $LOGFILE 2>&1

It always gives such message:

rsync: send_files failed to open
"/releases/.test/THIS-FILE-SHOULD-NOT-BE-PUBLIC.txt" (in gentoo-distfiles):
Permission denied (13)

sent 652 bytes  received 2581092 bytes  51123.64 bytes/sec
total size is 147072166651  speedup is 56966.21
rsync error: some files could not be transferred (code 23) at main.c(1524)
[generator=3.0.3]
rsync distfile end.

I don`t known about the file THIS-FILE-SHOULD-NOT-BE-PUBLIC.txt.
How does this happen and how can I do about it?
Thanks a lot.

-- 
wuqinfan