I put it in chloe user cron
but cron seems not running. why?

--- On Thu, 9/3/09, Rob Kampen <rkam...@kampensonline.com> wrote:


From: Rob Kampen <rkam...@kampensonline.com>
Subject: Re: [CentOS] rsync
To: "CentOS mailing list" <centos@centos.org>
Received: Thursday, September 3, 2009, 4:10 PM


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 ch...@remotehost:/var/www/html 
> <mailto:ch...@remotehost:/var/www/html> /backup/html
>  Thank you
> 
> 
Hi Chloe,
As root the rsync has no access to your keys - run this job as yourself rather 
than root.
HTH
Rob
> ------------------------------------------------------------------------
> 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@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>   
-----Inline Attachment Follows-----


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



      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to