Okay, here it is:
#!/bin/bash
echo "--BEGINNING REPOSITORY SYNC AT `date`--"
if [ -f /var/lock/subsys/rsync_updates ]; then
echo "Updates via rsync already running."
echo "--ERROR: REPOSITORY SYNC ABORTED AT `date`--"
exit 0
fi
if [ -d /share/CentOS/6.3 ] ; then
echo "--SYNCING CentOS REPOSITORY, PLEASE WAIT--"
touch /var/lock/subsys/rsync_updates
time rsync -avSHP --delete --exclude "6.2/" --exclude "isos/" --exclude
"HEADER.html" --no-motd rsync.gtlib.gatech.edu::centos /share/CentOS/
/bin/rm -f /var/lock/subsys/rsync_updates
echo "--CentOS REPOSITORY SYNC FINISHED AT `date`--"
else
echo "Target directory /share/CentOS/6.3 not present."
echo "--ERROR: REPOSITORY SYNC ABORTED AT `date`--"
fi
Hope this helps.
On Thu, Feb 28, 2013 at 1:02 PM, Tony Schliesser <tony(a)schliesser.org>wrote:
> Ryan - If you don't care to share your mirror script, I'd like to see it.
>
> Thanks,
> Tony
>
>
> Hi Jim, it'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:
>
> if [ -f /var/lock/subsys/rsync_updates ]; then
> echo "Updates via rsync already running."
> echo "--ERROR: REPOSITORY SYNC ABORTED AT `date`--"
> exit 0
> fi
>
> 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.
>
>
>
> On Wed, Feb 27, 2013 at 8:42 PM, Jim Hartnett <mirrors(a)gawsolutions.us>wrote:
>
>> Ok, I have the lock scripts setup and working, I think we're ready to
>> add our mirror.
>>
>> (information repeated):
>>
>> mirror Url: http://mirrors.gawsolutions.us/centos
>> bandwidth: 100 Mbps up/down unmetered transfer
>> located in dallas, tx, usa
>> Geeks at Work Solutions
>> centos machine with apache
>> rsync twice a day at offset minutes (reduces peak for even hour starts)
>>
>> - -Jim
>>
>> 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
>>
>> _______________________________________________
>> CentOS-mirror mailing list
>> CentOS-mirror(a)centos.org
>> http://lists.centos.org/mailman/listinfo/centos-mirror
>>
>
>
Sure thing, I'm not at the office right now but when I am I'll send it off
to you.
On Feb 28, 2013 1:02 PM, "Tony Schliesser" <tony(a)schliesser.org> wrote:
> Ryan - If you don't care to share your mirror script, I'd like to see it.
>
> Thanks,
> Tony
>
>
> Hi Jim, it'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:
>
> if [ -f /var/lock/subsys/rsync_updates ]; then
> echo "Updates via rsync already running."
> echo "--ERROR: REPOSITORY SYNC ABORTED AT `date`--"
> exit 0
> fi
>
> 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.
>
>
>
> On Wed, Feb 27, 2013 at 8:42 PM, Jim Hartnett <mirrors(a)gawsolutions.us>wrote:
>
>> Ok, I have the lock scripts setup and working, I think we're ready to
>> add our mirror.
>>
>> (information repeated):
>>
>> mirror Url: http://mirrors.gawsolutions.us/centos
>> bandwidth: 100 Mbps up/down unmetered transfer
>> located in dallas, tx, usa
>> Geeks at Work Solutions
>> centos machine with apache
>> rsync twice a day at offset minutes (reduces peak for even hour starts)
>>
>> - -Jim
>>
>> 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
>>
>> _______________________________________________
>> CentOS-mirror mailing list
>> CentOS-mirror(a)centos.org
>> http://lists.centos.org/mailman/listinfo/centos-mirror
>>
>
>
i have the mirror initially synced, but need to setup lock files. documentation said to ask the mailing list
mirror Url: http://mirrors.gawsolutions.us/centos
bandwidth: 100 Mbps up/down unmetered transfer
located in dallas, tx, usa
Geeks at Work Solutions
centos machine with apache
rsync twice a day at offset minutes (reduces peak for even hour starts)
-Jim, Geeks at Work Solutions
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
I do not want to be part of this stop
Sent from my Verizon Wireless 4G LTE Smartphone
-------- Original message --------
From: Ralph Angenendt <ralph.angenendt(a)gmail.com>
Date:
To: centos-mirror(a)centos.org
Subject: Re: [CentOS-mirror] NEW mirror by HostingXtreme - Ohio
On 16.02.2013 16:20, Info | HostingXtreme.com wrote:
> Hi,
>
> We have setup a new public mirror for CentOS.
Mirror has been added and should show up in a few hours.
Thanks for your support.
Ralph
_______________________________________________
CentOS-mirror mailing list
CentOS-mirror(a)centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
Hello Ralph,
We have added ftp to our mirror.
Can you enable also ftp.
The link to ftp :
ftp://mirror.serverbeheren.nl/centos/
Greetz,
Michaël Jonkers
Hi there,
I have set up a CentOS mirror in our data centre and would like to ask that
it be made public.
I would first like to confirm I am syncing the best way, using: rsync
-aqzH --delete msync.centos.org::CentOS /mirror/centos/
Currently I am syncing every 3 hours, on the hour.
The server is located in Melbourne, Victoria, Australia and has a 150mbit
link.
We are Web24 Group Pty Ltd and a link to our website is:
http://www.web24.com.au/
Links
HTTP: http://mirror.web24.net.au/centos/
FTP: ftp://mirror.web24.net.au/centos/
RSYNC: mirror.web24.net.au::centos
Let me know if I need to add any other details.
Thank you. :)
Hi,
We have setup a new public mirror for CentOS.
*Details for the mirror are:*
* URL : http://centos.hostingxtreme.com
* Synchronized : Every 12 hours
* Location : Columbus, Ohio, USA
* Connection : 100 mbit
* Sponsor : HostingXtreme - http://hostingxtreme.com
* Contact : info(a)hostingxtreme.com
The cron is setup with this lock-file. Hope it is correct:
==========================
#!/bin/bash
if [ "$(ps auxw | grep msync.centos.org::CentOS|grep -v grep)" != "" ];then
echo "A centos-sync is already running ..."
exit
fi
echo "rsyncing now"
rsync -aqzH --delete msync.centos.org::CentOS /correct/path/
echo "done syncing"
==========================
--
Thanks,
The HostingXtreme Support Team
http://hostingxtreme.com
We're currently setting up a few mirrors now that we don't have a data
cap on our 100 Mb connection, but I couldn't find a repo size.
So, how large is the actual repository that is synced via rsync?
-Jim
Hello,
I have put online a new mirror.
HTTPD only - http://centos.generation-host.com/
Sponsoring Org. Generation-Host.com
Location: Toronto, Ontario - CANADA
Server has 100mbit connection, but can burst higher
Set to sync 4 times per day
Please let me know if any other info is needed,
Matt Cianfarani