抓取网络源

#!/bin/bash

#author:xbj

#description:yum rsync scrpt

Date=`date +%Y%m%d`

LogFile="/var/log/rsync_yum/$Date.log"

RsyncBin=/usr/bin/rsync

RsyncPerm="-avrt --numeric-ids --delete --delete-after --delay-updates --exclude=debug/ --exclude=isos/"

#===========================+epel+==================================

epelSite="rsync://dl.fedoraproject.org/fedora-epel"

epelLocalPath="/xbz/epel"


#####EPEL


$RsyncBin $RsyncPerm --exclude=4/ --exclude=4AS/ --exclude=4ES/ --exclude=4WS/ --exclude=beta/ --exclude=testing/ $epelSite $epelLocalPath >> $LogFile


echo "---------------------------$Date `date +%T` End-------------------------" >> $LogFile


本文出自 “xbzy” 博客,谢绝转载!

你可能感兴趣的:(yum,网络源,抓取epel)