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
274B

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