<HTML>
<HEAD>
<TITLE>Re: [CentOS] rsync</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Try this ... On your script ... <BR>
<BR>
/usr/bin/rsync -avzh  -e "ssh -i /home/user/.ssh/auth-key" chloe@remotehost:/var/www/html /backup/html <BR>
<BR>
<BR>
<BR>
Gabe<BR>
<BR>
<BR>
On 9/3/09 4:06 PM, "chloe K" <chloekcy2000@yahoo.ca> wrote:<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi<BR>
 <BR>
I put the rsync in cronjob<BR>
but it won't work<BR>
 <BR>
in root user cron<BR>
 <BR>
*/30  * * * *  /home/chloe/rsy.sh >/dev/null 2>&1<BR>
 <BR>
1/ why it needs pw when I run this rsy.sh in root?<BR>
but if I run it in chloe user, it doesn't need pw as I put authoized_key in remote host chloe <BR>
 <BR>
2/ why this root cronjob is not working? what wrong? I can't see this cron in message<BR>
 <BR>
the rsy.sh is below<BR>
 <BR>
#! /bin/sh<BR>
rsync -essh -av chloe@remotehost:/var/www/html <a href="mailto:chloe@remotehost:/var/www/html"><mailto:chloe@remotehost:/var/www/html></a>  /backup/html<BR>
 <BR>
Thank you<BR>
<BR>
 <BR>
<HR ALIGN=CENTER SIZE="1" WIDTH="100%">Ask a question on any topic and get answers from real people. <B>Go to Yahoo! Answers.</B> <a href="http://ca.answers.yahoo.com"><http://ca.answers.yahoo.com></a> <BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
CentOS mailing list<BR>
CentOS@centos.org<BR>
<a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>