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-archlinux.sh | |
download | mirror-sync-657d1fc484fa0b21b979525a92ace5c9e6f63da2.tar.gz mirror-sync-657d1fc484fa0b21b979525a92ace5c9e6f63da2.tar.bz2 mirror-sync-657d1fc484fa0b21b979525a92ace5c9e6f63da2.zip |
inital import
Diffstat (limited to 'bin/sync-archlinux.sh')
-rwxr-xr-x | bin/sync-archlinux.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/sync-archlinux.sh b/bin/sync-archlinux.sh new file mode 100755 index 0000000..fd03d23 --- /dev/null +++ b/bin/sync-archlinux.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +RSYNC="/usr/bin/rsync" +OPTS="-rtlvH --delete-after --delay-updates --safe-links --max-delete=1000" # from wiki.archlinux.org +SRC="rsync://ftp5.gwdg.de/pub/linux/archlinux/" +DST="/mirror/ftp/pub/archlinux/" + +lockfile=/tmp/`basename $0`.lock + +if lockfile -r 5 $lockfile +then + ${RSYNC} ${OPTS} ${SRC} ${DST} + echo "End: "`date` + rm -f $lockfile +fi |