man rsynchttp://www.gentoo.org/doc/en/rsync.xml
pid file = /var/run/rsyncd.pidmax connections = 10use chroot = yesuid = nobodygid = nobodymotd file = /etc/rsync/rsyncd.motdlog file = /var/log/rsync.logtransfer logging = yeslog format = %t %a %m %f %bsyslog facility = local3timeout = 300hosts allow = *[gentoo-x86-portage]#this entry is for compatibility#path = /usr/gentoo/rsync#comment = Gentoo Linux Portage tree[gentoo-portage]path=/usr/gentoo/rsynccomment=Gentoo Linux Portage tree mirrorexclude=distfiles/ packages/
#!/bin/bashRSYNC="/usr/bin/rsync"OPTS="--quiet --recursive --links --perms --times --devices --delete --timeout=300"SRC="rsync://81.223.20.162/gentoo-portage"DST="/usr/gentoo/rsync"echo "Started update at" `date` >> $0.log 2>&1logger -t rsync "re-rsyncing the gentoo-portage tree"$(RSYNC) $(OPTS) $(SRC) $(DST) >> $0.log 2>&1echo "End: "`date` >> $0.log 2>&1