Repository for all the scripts syncing my mirrors
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
287B

  1. #!/usr/bin/env sh
  2. # make sure we never run 2 rsync at the same time
  3. lockfile="/data/tmp/archstrike-mirror.lock"
  4. if [ -z "$flock" ] ; then
  5. exec env flock=1 flock -n $lockfile "$0" "$@"
  6. fi
  7. rsync -auvPH --delete-after rsync://mirror.archstrike.org/archstrike /data/mirrors/archstrike/