From 657d1fc484fa0b21b979525a92ace5c9e6f63da2 Mon Sep 17 00:00:00 2001 From: syncer Date: Wed, 11 Jan 2012 18:17:09 +0100 Subject: inital import --- bin/sync-gentoo-ftp-mirror.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/sync-gentoo-ftp-mirror.sh (limited to 'bin/sync-gentoo-ftp-mirror.sh') diff --git a/bin/sync-gentoo-ftp-mirror.sh b/bin/sync-gentoo-ftp-mirror.sh new file mode 100755 index 0000000..74d9cdc --- /dev/null +++ b/bin/sync-gentoo-ftp-mirror.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +RSYNC="/usr/bin/rsync" +OPTS="--quiet --recursive --links --perms --times --devices --delete --timeout=600 --password-file=/home/syncer/etc/gentoo_distfiles" +SRC="gentoo@masterdistfiles.gentoo.org::gentoo" +DST="/raid/ftp/pub/gentoo/" + +lockfile=/tmp/`basename $0`.lock + +if lockfile -r 5 $lockfile +then + ${RSYNC} ${OPTS} ${SRC} ${DST} + echo "End: "`date` + rm -f $lockfile +fi -- cgit v1.2.3-1-g7c22