[CentOS-mirror] RSYNC Script

Tue Apr 5 06:33:25 UTC 2005
Sydney Bogaert <Sydney at igretec.be>

Hello,
this is my script. :
centos.cmd
------------------------
#!/bin/sh
lockfile=/var/lock/centos.cmd.lock
if [ -f $lockfile ]; then
                echo "already running"
                exit
fi

touch $lockfile
rsync -azH --delete --bwlimit=wanted_bandwidth rsync://your.preferred.mirror/packages/centos/ /path/to/centos/repository/
rm -f $lockfile
------------------------
don't forget the trailing slashes.
the bandwidth is in kilobytes (ex: 2048 -> 16Mbps), and may be omitted if you don't care of saturating your line.
put the command in your crontab, running one or more times a day.

-----Message d'origine-----
De : centos-mirror-bounces at centos.org
[mailto:centos-mirror-bounces at centos.org]De la part de Brian Watters
Envoyé : vendredi 1 avril 2005 4:27
À : 'Mailing list for CentOS mirrors.'
Objet : [CentOS-mirror] RSYNC Script


Hello all,

Some time back I saw a posting of scripts that some of you are using for
running RSYNC, I have searched the list however the list appears to only now
go back a few days .. If those of you that have these sample scripts could
share again I would appreciate. 


BRW


_______________________________________________
CentOS-mirror mailing list
CentOS-mirror at centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror