summaryrefslogtreecommitdiff
path: root/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh
blob: e053fadab1ede3e3574e617a8774644f2957d65f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

source /etc/rsync/gentoo-mirror.conf

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
logger -t rsync "deleting spurious Changelog files"
find ${DST} -iname ".ChangeLog*" | xargs rm -rf

echo "End: "`date` >> $0.log 2>&1