<div dir="ltr"><p dir="ltr">Mirroring via httpis way more of a pain and uses WAY more bandwidth than rsync since the latter just pulls the new or changed files. Mirroring just 6 is as simple as making the remote directory the 6 ones. I suggest something like the following which should also keep the symlink up to date:</p>

<p dir="ltr">RSYNC=&quot;`which rsync`&quot;<br>OPTS=&quot;--delay-updates --delete-delay --devices --links --partial --perms --progress --recursive --sparse --specials --timeout=600 --times --quiet&quot;<br>DST=&quot;/some/local/dir&quot; <br>

SRC=&quot;rsync://<a href="http://eu-msync.centos.org/">eu-msync.centos.org/</a>&quot; </p><p dir="ltr"># CentOS 6 Repos<br>MSG=&quot;Starting sync of CentOS 6 repos&quot;<br>echo &quot;${MSG}&quot;<br>logger -t rsync &quot;${MSG}&quot;<br>

${RSYNC} ${OPTS} ${SRC}/centos-6/* ${DST}/CentOS/</p><p dir="ltr"><br></p>

<p dir="ltr">--<br>
Gene Liverman<br>
Systems Administrator<br>
Information Technology Services<br>
University of West Georgia<br>
<a href="mailto:gliverma@westga.edu" target="_blank">gliverma@westga.edu</a><br>
<a href="tel:678.839.5492" value="+16788395492" target="_blank">678.839.5492</a></p>
<p dir="ltr">ITS: Making Technology Work for You!<br></p>
<p dir="ltr">This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return mail, delete this message, and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal or actionable by law.<br>



    </p>
<div class="gmail_quote">On Dec 25, 2013 7:42 PM, &quot;Adrian Sevcenco&quot; &lt;<a href="mailto:Adrian.Sevcenco@spacescience.ro" target="_blank">Adrian.Sevcenco@spacescience.ro</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


Hi! I would like to setup a centos mirror but only with centos 6 data.<br>
Would be enough to use <a href="http://eu-msync.centos.org/centos-6" target="_blank">http://eu-msync.centos.org/centos-6</a> ?<br>
<br>
is it ok a command like:<br>
rsync  -avSH --delay-updates --delete $remote_dir $mirror_dir<br>
<br>
where remote-dir is rsync://<a href="http://eu-msync.centos.org/centos-6" target="_blank">eu-msync.centos.org/centos-6</a> ?<br>
<br>
is there a way to use a http mechanism? (i imagine that<br>
<a href="http://eu-msync.centos.org" target="_blank">eu-msync.centos.org</a> is an alias to the closest mirror and most often the<br>
http is used and less rsync)<br>
<br>
Thanks!<br>
Adrian<br>
<br>
<br>
--<br>
----------------------------------------------<br>
Adrian Sevcenco, Ph.D.                       |<br>
Institute of Space Science - ISS, Romania    |<br>
adrian.sevcenco at {<a href="http://cern.ch" target="_blank">cern.ch</a>,<a href="http://spacescience.ro" target="_blank">spacescience.ro</a>} |<br>
----------------------------------------------<br>
_______________________________________________<br>
CentOS-mirror mailing list<br>
<a href="mailto:CentOS-mirror@centos.org" target="_blank">CentOS-mirror@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos-mirror" target="_blank">http://lists.centos.org/mailman/listinfo/centos-mirror</a><br>
</blockquote></div>
</div>