Hello all:
- I created the directory tree of where I want to store my rpms mkdir -pv /depo/centos/6/os/x86_64
*Then I run rsync -avz rsync://mirror.centos.org/centos/6/ /depo/centos/6/
I end up with the following message:
rsync: failed to connect to mirror.centos.org: Connection refused (111) rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]
Interesting to note, I do the same exact steps from a test server that is outside our network (it is for personal use) and I get the following message
@ERROR: Unknown module 'centos' rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
Not sure what is going on :(
EDIT1: The workaround I found to this was to use wget. I am simply getting connection refused left and right when I try to do rsync.
wget -r -N -np -nH \ --include-directories=pub/centos/6\ --exclude-directories=6/isos \http://centos.mirror.ndchost.com/6/
EDIT2: I am a moron. I found the sites that support RSYNC and I am using the command below. However I am trying to find a way for rsync to rsync one specific directory and ignore everything else with out writing all these exceptions.
rsync -avrt rsync://mirror.clarkson.edu/centos/ /var/www/html/CentOS/centos/ --exclude '2/' --exclude '2.*/' --exclude '3/' --exclude '3.*/' --exclude '4/' --exclude '4.*/' --exclude '5/' --exclude '5.*/' --exclude '6.5/isos/' --exclude '6.5/os/i386/'
[link][9 comments]