[CentOS-mirror] some script for cron if help somebody

Tue May 26 11:40:31 UTC 2009
Marius Ardelean <marius.ardelean at apollo-hw.ro>

________________________Begin Script____________________________________
#!/bin/bash

/usr/bin/rsync -aqzHv --delete eu-msync.centos.org::CentOS 
/Data/Opensource/CentOS/ > /var/log/repos_centos.log
if [ "$?" -eq 0 ]
then
 echo "Centos-EU Syncing OK" | logger
else
 /usr/bin/rsync -aqzHv --delete us-msync.centos.org::CentOS 
/Data/Opensource/CentOS/ > /var/log/repos_centos.log
        if [ "$?" -eq 0 ]
        then
         echo "Centos-US Syncing OK" | logger
        else
         echo "ERROR: CentOS not syncing!!!" | logger
        fi
fi

________________________END OF SCRIPT_______________________________


Maybe help somebody


BR
Marius Ardelean