Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #!/bin/bash
  2. Purpose: Sync centos7 repos via rsync behind proxy
  3. Author: Mohan
  4.  
  5.  
  6. #Makesure rsync port 873 is allowed outbound on the squid proxy
  7. export RSYNC_PROXY=192.168.2.250:3128
  8.  
  9. #create directory structure
  10. mkdir -p /opt/repo/yum/centos/{os,updates}
  11.  
  12. #Update Base Repo
  13. #cd /opt/repo/yum/centos/os
  14. rsync -avzr --progress rsync://mirror.nl.leaseweb.net/centos/7.1.1503/os/ .
  15.  
  16. #Update Updates Repo
  17. #cd /opt/repo/yum/centos/updates
  18. rsync -avzr --progress rsync://mirror.nl.leaseweb.net/centos/7.1.1503/updates/ .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement