[CentOS-mirror] 回复: rsync without DVD

Fri Jan 13 14:12:26 UTC 2012
Daniel Gurgel <daniel.gurgel at secrel.net.br>

#!/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 


----- Mensagem original -----

De: "(1+1==2)?\"笨\":\"蛋\"" <2338953 at qq.com> 
Para: "Mailing list for CentOS mirrors." <centos-mirror at centos.org>, "Mailing list for CentOS mirrors." <centos-mirror at 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 at qq.com>; 
发送时间: 2012年1月13日(星期五) 上午8:32 
收件人: "Mailing list for CentOS mirrors."; 
主题: Re: [CentOS-mirror] rsync without DVD 

--exclude=isos 




------------------ Original ------------------ 

From: "Marlon Guzman"< admin at solidhosting.ph >; 
Date: Fri, Jan 13, 2012 08:27 AM 
To: "centos-mirror"< centos-mirror at centos.org >; 

Subject: [CentOS-mirror] rsync without DVD 
What is the rsync command without DVD? Thanks! 
_______________________________________________ 
CentOS-mirror mailing list 
CentOS-mirror at centos.org 
http://lists.centos.org/mailman/listinfo/centos-mirror 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-mirror/attachments/20120113/ada19407/attachment-0006.html>