# Script for mirroring ubuntu/ from Ubuntu-TW server
# http://ftp.ubuntu-tw.org/mirror-ubuntu.sh
#
# Please create "/data/mirror/ubuntu/" folder or change it to fit your needs.
#
# Run this script 4 times a day with cron
# 45 */4     * * *   /path/to/mirror-ubuntu.sh
#

rsync -av --timeout=600 --partial \
      --exclude "indices/" --exclude "dists/" \
      ftp.ubuntu-tw.org::ubuntu/ /data/mirror/ubuntu/

rsync -av --timeout=600 --partial --delete --delete-after \
      ftp.ubuntu-tw.org::ubuntu/ /data/mirror/ubuntu/
