Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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}
- #Update Base Repo
- #cd /opt/repo/yum/centos/os
- rsync -avzr --progress rsync://mirror.nl.leaseweb.net/centos/7.1.1503/os/ .
- #Update Updates Repo
- #cd /opt/repo/yum/centos/updates
- rsync -avzr --progress rsync://mirror.nl.leaseweb.net/centos/7.1.1503/updates/ .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement