#!/bin/bash

trap 'rm -f /tmp/rsync-centos' 1 2 3 15

if [ -e "/tmp/rsync-centos" ] ; then
        echo "Processo em execucao"
        exit 99
fi

echo 1 > /tmp/rsync-centos


rsync="/usr/bin/rsync -vatzH --progress --times --links --hard-links --delete --delay-updates --exclude=/2* --exclude=/3* --exclude=/4* --exclude=/RPM-GPG-KEY-CentOS-3 --exclude=/RPM-GPG-KEY-CentOS-4 --exclude=/RPM-GPG-KEY-centos4"
mirror=us-msync.centos.org::CentOS

dist=CentOS
path="/share"

if [ ! -e "$path/$dist" ]; then
       mkdir -p $path/$dist
fi
    
$rsync $mirror $path/$dist

rm -f /tmp/rsync-centos

exit 0



De: "(1+1==2)?\"笨\":\"蛋\"" <2338953@qq.com>
Para: "Mailing list for CentOS mirrors." <centos-mirror@centos.org>, "Mailing list for CentOS mirrors." <centos-mirror@centos.org>
Enviadas: Quinta-feira, 12 de Janeiro de 2012 21:43:47
Assunto: [CentOS-mirror] 回复:  rsync without DVD

rsync -aqzH  --delay-updates --delete msync.centos.org::CentOS --exclude alpha --exclude ia64 --exclude s390 --exclude s390x --exclude isos /data/mirror/root
or
rsync -aqzH  --delay-updates --delete msync.slfly.com::CentOS /data/mirror/root
 
 
------------------ 原始邮件 ------------------
发件人: "我自己的邮箱"<2338953@qq.com>;
发送时间: 2012年1月13日(星期五) 上午8:32
收件人: "Mailing list for CentOS mirrors.";
主题: Re: [CentOS-mirror] rsync without DVD
 
 --exclude=isos
 
 
------------------ Original ------------------
Date:  Fri, Jan 13, 2012 08:27 AM
To:  "centos-mirror"<centos-mirror@centos.org>;
Subject:  [CentOS-mirror] rsync without DVD
 
What is the rsync command without DVD? Thanks!
_______________________________________________
CentOS-mirror mailing list
CentOS-mirror@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror

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