[CentOS-mirror] Partial public mirror

Tue Jan 13 20:11:48 UTC 2009
David Richardson <david.richardson at utah.edu>

On Tue, 13 Jan 2009, BST.LT - The Information Company wrote:

> I am setting up a public mirror for Lithuania. 99% of us we needs only
> centos 5, only i386 and x64 architectures. I am trying to set up a public
> mirror for them, but how I tell rsync to automatically skip other
> versions? Or i need multiple rsync entries in my crontab?
>
> If anyone have made the same thing (partial mirror) please share how to do
> this best. Because, we really dont need stuff like centos 2.1, 3 and even
> 4 :)

The best way is probably to use
--exclude="2*/" --exclude="3*/" --exclude="4*/"
in your rsync command (I think that's the right syntax).

DR

-- 
David Richardson <david.richardson at utah.edu>
"I can't eat muffins in an agitated manner.
The butter would probably get on my cuffs."
   -- Algernon, The Importance of Being Earnest