<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>We are considering only syncing 4 &amp; 5 on our internal
mirror.&nbsp; Below is a script that was on the CentOS Mirror site.&nbsp; Would
I be able to use this script to sync only 4 or 5?&nbsp; Or, is there a better
way to accomplish this?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Todd<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>File:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sync_centos.sh<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>------------------------------<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>#!/bin/sh<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>rsync=&quot;/usr/local/bin/rsync
-aqHz --delete --delay-updates --bwlimit=10240&quot;<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'># this should be
auto-selected, but the centos mirror script doesn't&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'># support
selection by a specific protocol (i.e., rsync)<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>mirror=RSYNCURLGOESHERE::mirrors/centos<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>ver=4<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>archlist=&quot;i386
x86_64&quot;<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>baselist=&quot;os
updates&quot;<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>local=/opt/mirrors/centos<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>for arch in
$archlist<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>do<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp; for base
in $baselist<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp; do<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;
remote=$mirror/$ver/$base/$arch/<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;
$rsync $remote $local/$ver/$base/$arch/<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:2.25pt;
margin-bottom:0in;margin-left:2.25pt;margin-bottom:.0001pt;background:white'><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp; done<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:black'>done</span><span style='font-size:
11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

</div>

</body>

</html>