Skip to content

Instantly share code, notes, and snippets.

View lazywhite's full-sized avatar

lazywhite lazywhite

  • Shanghai China
  • 07:35 (UTC +08:00)
View GitHub Profile
@tuxfight3r
tuxfight3r / rsync-reposync.sh
Created July 13, 2015 10:45
Centos updates via rsync behind proxy
#!/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}