#!/bin/sh # Choose one site below and un-comment it. URL="rsync://mirrors.sohu.com/fedora" # Set OPTIONS. OPTIONS="-avP --delete" # Set the destination path where the repository to be stored. DEST="/pub/ftp/pub/linux/fedora" # Run rsync. # updates/17 EXCLUDE="--exclude=i386/debug/ --exclude=x86_64/debug/" SUBSRC="updates/17" SUBDEST="updates" /usr/bin/rsync $OPTIONS $EXCLUDE ${URL}/${SUBSRC} $DEST/${SUBDEST} # releases/17/Fedora EXCLUDE="--exclude=i386/iso/ --exclude=i386/jigdo/ \ --exclude=x86_64/iso/ --exclude=x86_64/jigdo/ \ --exclude=source/iso/ --exclude=source/jigdo/" SUBSRC="releases/17/Fedora" SUBDEST="releases/17" /usr/bin/rsync $OPTIONS $EXCLUDE ${URL}/${SUBSRC} $DEST/${SUBDEST} # releases/17/Everything EXCLUDE="--exclude=i386/debug/ --exclude=x86_64/debug/" SUBSRC="releases/17/Everything" SUBDEST="releases/17" /usr/bin/rsync $OPTIONS $EXCLUDE ${URL}/${SUBSRC} $DEST/${SUBDEST} exit 0