#!/bin/sh # Choose one site below and un-comment it. URL="rsync://mirrors.ustc.edu.cn/centos" # Set OPTIONS. OPTIONS="-avP --delete" # Set EXCLUDE. EXCLUDE="--exclude=fasttrack/ --exclude=isos/" # Set the destination path where the repository to be stored. DEST="/pub/ftp/pub/linux/centos" # Run rsync. # 6(6.3) /usr/bin/rsync $OPTIONS $EXCLUDE ${URL}/6 $DEST /usr/bin/rsync $OPTIONS $EXCLUDE ${URL}/6.3 $DEST # 5(5.8) /usr/bin/rsync $OPTIONS $EXCLUDE ${URL}/5 $DEST /usr/bin/rsync $OPTIONS $EXCLUDE ${URL}/5.8 $DEST exit 0