centos.interhost.co.il
INTERHOST - Network Solutions
NEW ISRAELI CENTOS MIRROR
100MBIT LINE
DUAL XEON IBM SERVER
Anyone know how to do those "locks" that they mention for the cron job?
Our mirror is a Single XEON Server on the main CNC/CT NAP backbone...
On 14/11/2006, at 3:52 PM, Dmitry Sherman wrote:
centos.interhost.co.il
INTERHOST – Network Solutions
NEW ISRAELI CENTOS MIRROR
100MBIT LINE
DUAL XEON IBM SERVER
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Anyone know how to do those "locks" that they mention for the cron job?
Sample simple rsync shell script with lock files:
#!/bin/bash
RSYNC="/usr/bin/rsync" # path to rsync FLAGS="-aqzH --delete" # flags to pass to rsync MIRROR="msync.centos.org::CentOS" # mirror url REPO="/var/ftp/pub/centos" # location to store files LOCKFILE="/var/lock/subsys/rsynccentos" # location of lock file
if [ -f $LOCKFILE ] # check to see if lock file exists then echo Lock file exists...Exiting... exit 0 else touch $LOCKFILE # create lock file fi echo Rsyncing... $RSYNC $FLAGS $MIRROR $REPO # issue rsync command rm -f $LOCKFILE # remove lockfile exit 0
Le mardi 14 novembre 2006 14:25, Matthew Martz a écrit :
Anyone know how to do those "locks" that they mention for the cron job?
Sample simple rsync shell script with lock files:
I suggest you to start to have a look to http://mmm.zarb.org/, I am activelly working on it.
Feedback / comment welcome.