diff options
Diffstat (limited to 'bin/sync-gentoo-portage.sh')
-rwxr-xr-x | bin/sync-gentoo-portage.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/sync-gentoo-portage.sh b/bin/sync-gentoo-portage.sh new file mode 100755 index 0000000..3f8c552 --- /dev/null +++ b/bin/sync-gentoo-portage.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +RSYNC="/usr/bin/rsync" +OPTS="--quiet --recursive --links --perms --times --devices --compress --delete --timeout=600" +SRC="rsync://masterportage.gentoo.org/gentoo-portage" +DST="/raid/gentoo-portage/" + +lockfile=/tmp/`basename $0`.lock + +if lockfile -r 5 $lockfile +then + ${RSYNC} ${OPTS} ${SRC} ${DST} + echo "End: "`date` + rm -f $lockfile +fi + |