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-siduction.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/sync-siduction.sh (limited to 'bin/sync-siduction.sh') diff --git a/bin/sync-siduction.sh b/bin/sync-siduction.sh new file mode 100755 index 0000000..997e0ec --- /dev/null +++ b/bin/sync-siduction.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +RSYNC="/usr/bin/rsync" +#-a = -prtlgoD +OPTS="-prtlvH --delete-after --delay-updates --safe-links" +SRC="rsync://sync.siduction.org:/siduction" +DST="/mirror/ftp/pub/siduction/" + +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