diff options
author | syncer <root@plopp.spline.de> | 2012-01-11 18:17:09 +0100 |
---|---|---|
committer | syncer <root@plopp.spline.de> | 2012-01-11 18:18:29 +0100 |
commit | 657d1fc484fa0b21b979525a92ace5c9e6f63da2 (patch) | |
tree | f395b3a6f1993f4b5c4b46b8bebf04f730987739 /bin/sync-siduction.sh | |
download | mirror-sync-657d1fc484fa0b21b979525a92ace5c9e6f63da2.tar.gz mirror-sync-657d1fc484fa0b21b979525a92ace5c9e6f63da2.tar.bz2 mirror-sync-657d1fc484fa0b21b979525a92ace5c9e6f63da2.zip |
inital import
Diffstat (limited to 'bin/sync-siduction.sh')
-rwxr-xr-x | bin/sync-siduction.sh | 16 |
1 files changed, 16 insertions, 0 deletions
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 |