<div dir="ltr">Okay, here it is:<div><br></div><div><div>#!/bin/bash</div><div>echo &quot;--BEGINNING REPOSITORY SYNC AT `date`--&quot;</div><div>if [ -f /var/lock/subsys/rsync_updates ]; then</div><div>    echo &quot;Updates via rsync already running.&quot;</div>

<div>    echo &quot;--ERROR: REPOSITORY SYNC ABORTED AT `date`--&quot;</div><div>    exit 0</div><div>fi</div><div>if [ -d /share/CentOS/6.3 ] ; then</div><div>    echo &quot;--SYNCING CentOS REPOSITORY, PLEASE WAIT--&quot;</div>

<div>    touch /var/lock/subsys/rsync_updates</div><div>    time rsync -avSHP --delete --exclude &quot;6.2/&quot; --exclude &quot;isos/&quot; --exclude &quot;HEADER.html&quot; --no-motd rsync.gtlib.gatech.edu::centos /share/CentOS/</div>

<div>    /bin/rm -f /var/lock/subsys/rsync_updates</div><div>    echo &quot;--CentOS REPOSITORY SYNC FINISHED AT `date`--&quot;</div><div>else</div><div>    echo &quot;Target directory /share/CentOS/6.3 not present.&quot;</div>

<div>    echo &quot;--ERROR: REPOSITORY SYNC ABORTED AT `date`--&quot;</div><div>fi</div><div><br></div><div style>Hope this helps.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 28, 2013 at 1:02 PM, Tony Schliesser <span dir="ltr">&lt;<a href="mailto:tony@schliesser.org" target="_blank">tony@schliesser.org</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Ryan - If you don&#39;t care to share your mirror script, I&#39;d like to see it.<div>

<br></div><div>Thanks,</div>
<div>Tony</div><div><div><br></div><div><br></div><div><div dir="ltr" style="font-family:arial,sans-serif;font-size:13px">
Hi Jim, it&#39;s quite easy to do with a script. This first section here checks to see if a lock is present, and if it is, the script bails:<div><br></div><div><div>if [ -f /var/lock/subsys/rsync_updates ]; then</div><div>



    echo &quot;Updates via rsync already running.&quot;</div><div>    echo &quot;--ERROR: REPOSITORY SYNC ABORTED AT `date`--&quot;</div><div>    exit 0</div><div>fi</div></div><div><br></div><div>When I begin my sync, it touches the lock file (touch /var/lock/subsys/rsync_updates), and when finished, removes it (/bin/rm -f /var/lock/subsys/rsync_updates). If you need any help or wish to see my full script, just let me know and I can provide it.</div>



<div><br></div></div></div></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 27, 2013 at 8:42 PM, Jim Hartnett <span dir="ltr">&lt;<a href="mailto:mirrors@gawsolutions.us" target="_blank">mirrors@gawsolutions.us</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Ok, I have the lock scripts setup and working, I think we&#39;re ready to<br>


add our mirror.<br>
<br>
(information repeated):<br>
<div><br>
mirror Url: <a href="http://mirrors.gawsolutions.us/centos" target="_blank">http://mirrors.gawsolutions.us/centos</a><br>
bandwidth: 100 Mbps up/down unmetered transfer<br>
located in dallas, tx, usa<br>
Geeks at Work Solutions<br>
centos machine with apache<br>
rsync twice a day at offset minutes (reduces peak for even hour starts)<br>
<br>
</div><span><font color="#888888">- -Jim<br>
</font></span><br>
P.S: sorry if this message gets repeated multiple times. I just found out my email client was having some issues with the account I use for mirror mailing lists<br>
<div><div><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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>