
저는 대학을 위한 개인 Gentoo 저장소를 설정하려는 Debian 호스트를 가지고 있습니다. 다음 코드 조각을 사용하여 간단한 bash 스크립트를 통해 저장소 동기화를 시작했습니다.
RSYNC="/usr/bin/rsync"
OPTS="--quiet --recursive --links --perms --times -D --delete --timeout=300"
SRC="rsync://rsync.de.gentoo.org/gentoo-portage"
DST="
저장소를 설정하려면 또 무엇을 해야 합니까?
답변1
젠투를 설치하면 많은 문제를 해결할 수 있습니다.특히이것 -
하지만 이미 프로그래밍 방식으로 포티지 트리를 동기화하고 있다면 rsync 외에 필요한 다른 것이 있습니까?
모두 직접문서:
쉘 스크립트는 cron을 통해 실행됩니다.
RSYNC="/usr/bin/rsync"
OPTS="--quiet --recursive --links --perms --times -D --delete --timeout=300"
SRC="rsync://rsync.de.gentoo.org/gentoo-portage"
DST="/space/gentoo/portage/"
echo "Started update at" `date` >> $0.log 2>&1
logger -t rsync "re-rsyncing the gentoo-portage tree"
${RSYNC} ${OPTS} ${SRC} ${DST} >> $0.log 2>&1
rsyncd.conf에서:
pid file = /var/run/rsyncd.pid
max connections = 5
use chroot = yes
uid = nobody
gid = nobody
# Optional: restrict access to your Gentoo boxes
hosts allow = 192.168.0.1 192.168.0.2 192.168.1.0/24
hosts deny = *
[gentoo-portage]
path=/space/gentoo/portage
comment=Portage tree
그런 다음 rsync 데몬을 시작하십시오.rsync --daemon
아직 테스트하지는 않았지만, 당신이 원하지 않는 한 꽤 가까워질 것입니다...비젠투 배포판에 포티지 설치?