This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
Purpose: Sync centos7 repos via rsync behind proxy | |
Author: Mohan | |
#Makesure rsync port 873 is allowed outbound on the squid proxy | |
export RSYNC_PROXY=192.168.2.250:3128 | |
#create directory structure | |
mkdir -p /opt/repo/yum/centos/{os,updates} |