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.

14 lines
444B

  1. #!/bin/bash
  2. # make sure we never run 2 rsync at the same time
  3. lockfile="/data/tmp/artix-mirror.lock"
  4. if [ -z "$flock" ] ; then
  5. exec env flock=1 flock -n $lockfile "$0" "$@"
  6. fi
  7. rsync -auvPH --delete-after "rsync://mirrors.dotsrc.org/artix-linux/" /data/mirrors/artix/
  8. #rsync -auvPH --delete-after "rsync://orion.artixlinux.org:64873/" /data/artix/repos/
  9. #rsync -auvPH --delete-after "rsync://download.artixlinux.org/iso/" /data/artix/iso/