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
1 I use the following script to set up a gentoo source mirror:
2
3 #!/bin/bash
4
5 # rsync gentoo distfiles
6
7 RSYNC="/usr/bin/rsync"
8 OPTS="--verbose --recursive --links --perms --times -D --delete
9 --timeout=300"
10 SRC="rsync://ftp.ussg.iu.edu/gentoo-distfiles"
11 DST="/opt/matrix/Anonymous/mirror/gentoo"
12
13 LOGFILE="rsync-gentoo-distfiles.log"
14
15 echo `date` >> $LOGFILE 2>&1
16 echo "Starting rsync distfiles..." >> $LOGFILE 2>&1
17
18 ${RSYNC} ${OPTS} ${SRC} ${DST} >> $LOGFILE 2>&1
19
20 echo "rsync distfile end. ("`date`")" >> $LOGFILE 2>&1
21 echo "" >> $LOGFILE 2>&1
22
23 It always gives such message:
24
25 rsync: send_files failed to open
26 "/releases/.test/THIS-FILE-SHOULD-NOT-BE-PUBLIC.txt" (in gentoo-distfiles):
27 Permission denied (13)
28
29 sent 652 bytes received 2581092 bytes 51123.64 bytes/sec
30 total size is 147072166651 speedup is 56966.21
31 rsync error: some files could not be transferred (code 23) at main.c(1524)
32 [generator=3.0.3]
33 rsync distfile end.
34
35 I don`t known about the file THIS-FILE-SHOULD-NOT-BE-PUBLIC.txt.
36 How does this happen and how can I do about it?
37 Thanks a lot.
38
39 --
40 wuqinfan