The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 rsync in cronjob
Author: Sanjay Sethi 
Date:   07-06-02 16:04

When I run the following script on my command line, it works OK, but when I put it into cronjob for every minute, it does not do anything. I am trying to push my source to all production servers every minute ( it is a test right now ).

Please advise.

======= begin rsync.sh ===================
#!/bin/sh

/usr/local/bin/rsync -r -q -b -t /apps/rca/migr/bin/ /apps/rca/prod/bin;


/usr/local/bin/rsync -e ssh -rqbt /apps/rca/prod/bin/ oracle@irmuxs620:/home/oracle/prod/bin;
/usr/local/bin/rsync -e ssh -rqbt /apps/rca/prod/bin/ oracle@irmuxs630:/home/oracle/prod/bin;
============= end rsync.sh

Reply To This Message
 
 Re: rsync in cronjob
Author: Dan Langille 
Date:   07-06-02 16:23

Did you press ENTER at the end of the line in your crontab?

Show us your crontab entry.

Reply To This Message
 
 Re: rsync in cronjob
Author: Sanjay Sethi 
Date:   07-06-02 17:24

Hi Dan,

Thanks for prompt attention. I have resolved the issue, it was due to the path for ssh.

Since you are going to read this. What I should do completely replace the contents of my destination ie irmuxs620 from local machine ie /apps/rca/prod/bin/


/usr/local/bin/rsync -e ssh -rqbt /apps/rca/prod/bin/ oracle@irmuxs620:/home/oracle/prod/bin


Again thanks a lot !Dan Langille wrote:
>
> Did you press ENTER at the end of the line in your
> crontab?
>
> Show us your crontab entry.

Reply To This Message
 
 Re: rsync in cronjob
Author: Sanjay Sethi 
Date:   07-06-02 17:31

CORRECTION :

Since you are going to read this. What I want to do is to completely replace the contents of my destination ie irmuxs620 from local machine ie /apps/rca/prod/bin/

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org