#!/bin/sh rsync -avzH --delete-after msync.centos.org::CentOS/5 /var/www/mirror/centos/ rsync -avzH --delete-after msync.centos.org::CentOS/5.5 /var/www/mirror/centos/ rsync -avzH --delete-after msync.centos.org::CentOS/TIME /var/www/mirror/centos/ rsync -avzH --delete-after msync.centos.org::CentOS/timestamp.txt /var/www/mirror/centos/ rsync -avzH --delete-after msync.centos.org::CentOS/RPM-GPG-KEY-CentOS-5 /var/www/mirror/centos/ # End of Main CentOS Main Rsync Script # You can generate an email that all are ok. If you don't want to # Get Email Every time it runs, just Delete the line bellow: TIME=`date` echo "CentOS Mirror Sync Script Run Sucessfully on $TIME" | mail -s "CentOS Mirror Updated $TIME" YourEmailAddress@YourDomain.Com