[CentOS] rsync

Fri Sep 4 06:21:30 UTC 2009
Chris Geldenhuis <chris.gelden at iafrica.com>

chloe K wrote:
> Hi
>  
> I put the rsync in cronjob
> but it won't work
>  
> in root user cron
>  
> */30  * * * *  /home/chloe/rsy.sh >/dev/null 2>&1
>  
> 1/ why it needs pw when I run this rsy.sh in root?
> but if I run it in chloe user, it doesn't need pw as I put 
> authoized_key in remote host chloe
>  
> 2/ why this root cronjob is not working? what wrong? I can't see this 
> cron in message
>  
> the rsy.sh is below
>  
> #! /bin/sh
> rsync -essh -av chloe at remotehost:/var/www/html 
> <mailto:chloe at remotehost:/var/www/html> /backup/html
>  
> Thank you
>
>
> ------------------------------------------------------------------------
> Ask a question on any topic and get answers from real people. *Go to 
> Yahoo! Answers.* <http://ca.answers.yahoo.com>
> ------------------------------------------------------------------------
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>   
Hi Chloe,

How did you create your cron table? You have to craete it with crontab 
and not with vi for it to be effective.

ChrisG