Re: Howto to control rsync through cron

2002-10-24 Thread CAD/SysAdmin Manager
Hi Thomas, Bart,   Thanks for the suggestion. I have written a little wrapper script that checks the flag ( /var/tmp/rsync_is_running ) before starting a new job, and it seems to be working just fine now.   Thanks & best regards, --  Derric Lewis CAD/System Administrator Virtual IP Group, Inc.  

Howto to control rsync through cron

2002-10-24 Thread CAD/SysAdmin Manager
Hi,   I have setup a cron job to rsync files between two servers every hour. 30 * * * * rsync -avz --delete rsyncsrv1::ftp/  /export/ftp/   This works fine most of the time, but if I have a very large file that needs to be transfered ( many tens of MBs), I run into a problem. Since the link betwe

Re: Howto to control rsync through cron

2002-10-24 Thread bart . coninckx
: Howto to control rsync through cron Sent by: rsync-admin@lists

Re: Howto to control rsync through cron

2002-10-24 Thread Thomas Chung
Try wrapping your rsync around script thats has some sort of lock file mechanism [ -f /var/tmp/rsync_is_running ] && exit 0 [ -f /var/tmp/rsync_is_running ] || touch /var/tmp/rsync_is_running && rsync -avz --delete rsyncsrv1::ftp/ /export/ftp/ or something like that. CAD/SysAdmin Manager wr