Install require package

# yum -y install rsync createrepo

Sync Data

mkdir -p /data/repo/{centos,epel,remi}

# Centos repo
rsync --delete --no-o --no-g -avH rsync://ftp.iij.ad.jp/pub/linux/centos/ /data/repo/centos/
echo -e '\n' >> $log_file

# Epel repo
rsync --delete --no-o --no-g -avH rsync://anorien.csc.warwick.ac.uk/EPEL/ /data/repo/epel/
echo -e '\n' >> $log_file

# Remi repo
rsync --delete --no-o --no-g -avH rsync://repo1.sea.innoscale.net/remi/enterprise/ /data/repo/remi/