RSYNC="/usr/local/bin/rsync"
OPTS=" -avr --progress --delete-before --temp-dir=/tmp"
SRC="rsync://ftp2.ru.freebsd.org/pub/FreeBSD/distfiles/"
DST="/data/ftp/freebsd/distfiles/"
echo "Started update at" `date` >> /var/log/rsync-freebsd-distfiles.sh.log 2>&1
logger -t rsync "re-rsyncing the frebsd-distfiles tree"
${RSYNC} ${OPTS} ${SRC} ${DST} >> /var/log/rsync-freebsd-distfiles.sh.log 2>&1
echo "End: "`date` >> /var/log/rsync-freebsd-distfiles.sh.log 2>&1
OPTS=" -v --recursive --links --perms --times --delete --devices --timeout=300 --delete-after --exclude=distfiles --progress"
SRC="rsync://ftp2.ru.freebsd.org/pub/FreeBSD/ports/"
DST="/data/ftp/freebsd/ports/"
echo "Started update at" `date` >> /var/log/rsync-freebsd-ports.sh.log 2>&1
logger -t rsync "re-rsyncing the frebsd-ports tree"
${RSYNC} ${OPTS} ${SRC} ${DST} >> /var/log/rsync-freebsd-ports.sh.log 2>&1
echo "End: "`date` >> /var/log/rsync-freebsd-ports.sh.log 2>&1
gentoo
RSYNC="/usr/local/bin/rsync"
OPTS=" -avr --progress --delete-before --temp-dir=/tmp"
SRC="rsync://trumpetti.atm.tut.fi/gentoo/distfiles/"
DST="/data/ftp/gentoo/distfiles/"
echo "Started update at" `date` >> /var/log/rsync-gentoo-distfiles.sh.log 2>&1
logger -t rsync "re-rsyncing the gentoo-distfiles tree"
${RSYNC} ${OPTS} ${SRC} ${DST} >> /var/log/rsync-gentoo-distfiles.sh.log 2>&1
echo "End: "`date` >> /var/log/rsync-gentoo-distfiles.sh.log 2>&1