Rsync on Yum repo mirrors.

Associate
Joined
9 Nov 2005
Posts
767
Location
places..
Hi peeps.

I have a local yum repo for my CentOS boxes, this updates using a shell script / cron job to update via rsync.

After all the updates in the last few weeks, I have noticed that my rsync script fails on the older versions (5.5 and below to be exact) rsync complains there is not such directory!

I have tried a couple of different mirrors, and they all have the rpm trees there on the http & ftp versions, which has led me to think that the mirror may have disabled rsync access to the non current version of the sites?

Or am I doing something wrong? DOH!

Cheers...
 
I often get different content from http/ftp and rsync from mirrorservice.org depending on the update schedule.


The best thing is just to rsync to 5:

rsync rsync://rsync.mirrorservice.org/mirror.centos.org/5/

The latest version 5.6 will be a link to 5 and once 5.7 comes out 5.6 will be replaced with a directory containing the iso and readme, and 5.7 will point to 5.
 
Cool, I guess I could also do the same in my .repo files, I assume this would mean I would have to create a symbolic link from 5 => 5.x, and change it manually on release? Or would it copy think sym link hmm...

Thanks Chris.
 
Back
Top Bottom