<div dir="ltr">This is what I have as my script for testing on a public mirror. It does not yet point to the master server.<div><br></div><div><div>#!/bin/bash</div><div> echo "--BEGINNING REPOSITORY SYNC AT `date`--"</div><div>if [ -f /var/lock/subsys/rsync_updates ]; then</div><div> echo "Updates via rsync already running."</div><div> echo "--ERROR: REPOSITORY SYNC ABORTED AT `date`--"</div><div> exit 0</div><div>fi</div><div>if [ -d /share/linux-os/centos/ ] ; then</div><div> echo "--SYNCING CentOS REPOSITORY, PLEASE WAIT--"</div><div> touch /var/lock/subsys/rsync_updates</div><div> time rsync -avSHP --delete /" --exclude "HEADER.html"" --no-motd mirror.us.oneandone.net:centos /share/linux-os/centos/</div><div> /bin/rm -f /var/lock/subsys/rsync_updates</div><div> echo "--CentOS REPOSITORY SYNC FINISHED AT `date`--"</div><div>else</div><div> echo "Target directory /share/linux-os/centos/ not present."</div><div> echo "--ERROR: REPOSITORY SYNC ABORTED AT `date` --"</div><div>fi</div></div><div><br></div><div><br></div><div>This is the output that it gives me.</div><div><br></div><div><div>[root@mirrors ~]# ./test.sh</div><div>--BEGINNING REPOSITORY SYNC AT Wed Feb 25 10:19:16 EST 2015--</div><div>--SYNCING CentOS REPOSITORY, PLEASE WAIT--</div><div>Unexpected remote arg: mirror.us.oneandone.net:centos</div><div>rsync error: syntax or usage error (code 1) at main.c(1201) [sender=3.0.6]</div><div><br></div><div>real 0m0.002s</div><div>user 0m0.000s</div><div>sys 0m0.002s</div><div>--CentOS REPOSITORY SYNC FINISHED AT Wed Feb 25 10:19:16 EST 2015--</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 9:58 AM, Warren Myers <span dir="ltr"><<a href="mailto:volcimaster@gmail.com" target="_blank">volcimaster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Also - as a single point of reference (before IP filtering was done), I found out how long it would take to do a full mirror (~80GB), and it's about 8 hours at ~2.5 MB/s:<div><br></div><div><a href="http://antipaucity.com/2014/05/22/soup-to-nuts-mirroring-of-centos/#.VO3i2FPF83Q" target="_blank">http://antipaucity.com/2014/05/22/soup-to-nuts-mirroring-of-centos/#.VO3i2FPF83Q</a><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 9:57 AM, Warren Myers <span dir="ltr"><<a href="mailto:volcimaster@gmail.com" target="_blank">volcimaster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I don't use a lockfile (and my mirror is in Germany - hence the eu reference), but I use the following:<div><br></div><div><font face="monospace, monospace">0 3,15 * * * rsync -aqzH --delete eu-msync.centos.org::CentOS /var/www/centos/media</font><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Feb 25, 2015 at 9:29 AM, Kenny Carsey <span dir="ltr"><<a href="mailto:kcarsey@wvstateu.edu" target="_blank">kcarsey@wvstateu.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hello,</div><div>I have set up and did the initial sync for a new mirror in West Virginia. After looking at the mirrors list, I believe this is the first mirror to be located in WV</div><div><br></div><div>HTTP: <a href="http://centos.mirrors.wvstateu.edu" target="_blank">http://centos.mirrors.wvstateu.edu</a></div><div>Sync schedule: Every 12 hrs<br></div><div>Bandwidth: 300Mbps</div><div>Location: Institute, WV, USA</div><div>Sponsor: West Virginia State University</div><div>Sponsor URL: <a href="http://www.wvstateu.edu" target="_blank">www.wvstateu.edu</a></div><div>IP to authorize: 192.73.23.18</div><div>Email contact: <a href="mailto:kcarsey@wvstateu.edu" target="_blank">kcarsey@wvstateu.edu</a></div><div><br></div><div>Also, I am having issues getting a good rsync script working with a lock file. Could someone provide a working example that I could modify to fit my configuration? Would be much appreciated!</div><div><br></div><div><br></div><div><div dir="ltr"><div><font face="verdana, sans-serif"><span style="line-height:18.546667098999px"><br></span></font></div></div></div>
</div>
<br></div></div>_______________________________________________<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>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font face="'trebuchet ms', sans-serif"><b>Warren Myers</b></font><br><font size="1"><a href="http://antipaucity.com" target="_blank">http://antipaucity.com</a></font><div><font size="1"><a href="http://twitter.com/warrenmyers" target="_blank">http://twitter.com/warrenmyers</a><br><a href="http://www.linkedin.com/in/warrenmyers" target="_blank">http://www.linkedin.com/in/warrenmyers</a></font></div><div><a href="https://www.digitalocean.com/?refcode=d197a961987a" style="line-height:21.2999992370605px;color:rgb(0,104,207);font-family:Calibri,sans-serif" target="_blank"><font size="1">https://www.digitalocean.com/?refcode=d197a961987a</font></a><font size="1"><br></font><div><span style="color:rgb(51,51,51);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgb(255,255,255)"><font size="1">TXT WMYERS to 50500 | <a href="http://contxts.com" target="_blank">http://contxts.com</a></font></span></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font face="'trebuchet ms', sans-serif"><b>Warren Myers</b></font><br><font size="1"><a href="http://antipaucity.com" target="_blank">http://antipaucity.com</a></font><div><font size="1"><a href="http://twitter.com/warrenmyers" target="_blank">http://twitter.com/warrenmyers</a><br><a href="http://www.linkedin.com/in/warrenmyers" target="_blank">http://www.linkedin.com/in/warrenmyers</a></font></div><div><a href="https://www.digitalocean.com/?refcode=d197a961987a" style="line-height:21.2999992370605px;color:rgb(0,104,207);font-family:Calibri,sans-serif" target="_blank"><font size="1">https://www.digitalocean.com/?refcode=d197a961987a</font></a><font size="1"><br></font><div><span style="color:rgb(51,51,51);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgb(255,255,255)"><font size="1">TXT WMYERS to 50500 | <a href="http://contxts.com" target="_blank">http://contxts.com</a></font></span></div></div></div></div>
</div>
</div></div><br>_______________________________________________<br>
CentOS-mirror mailing list<br>
<a href="mailto:CentOS-mirror@centos.org">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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="verdana, sans-serif"><span style="line-height:18.546667098999023px">Kenny Carsey</span></font><div><font face="verdana, sans-serif" size="1"><span style="line-height:18.546667098999023px">Systems Administrator</span></font></div><div><span style="line-height:18.546667098999023px;font-family:verdana,sans-serif;font-size:x-small">West Virginia State University</span><br></div><div><font face="verdana, sans-serif" size="1"><span style="line-height:18.546667098999023px">108 Hamblin Hall</span></font></div><div><font face="verdana, sans-serif" size="1"><span style="line-height:18.546667098999023px">PO Box 1000</span></font></div><div><font face="verdana, sans-serif" size="1"><span style="line-height:18.546667098999023px">Institute, WV 25112</span></font></div><div><font face="verdana, sans-serif" size="1"><span style="line-height:18.546667098999023px"><a href="mailto:kcarsey@wvstateu.edu" target="_blank">kcarsey@wvstateu.edu</a></span></font></div><div><font face="verdana, sans-serif" size="1"><span style="line-height:18.546667098999023px">(304)204-4337</span></font></div><div><font face="verdana, sans-serif"><span style="line-height:18.546667098999023px"><br></span></font></div></div></div>
</div>