PLS Ignore [was: rsync over ssh - reporting errors]

Steve Mallett spaceman at nbnet.nb.ca
Thu Nov 21 20:50:59 EST 2002


Begin forwarded message:

> From: Steve Mallett <spaceman at nbnet.nb.ca>
> Date: Thu Nov 21, 2002  3:40:03  PM America/Halifax
> To: rsync at lists.samba.org
> Subject: rsync over ssh - reporting errors
>
> I have rsync using ssh to grab files off my local box, but would like 
> to include some basic error reporting.
>
> If the directory I'm trying to access no longer exists (or other 
> reasons why the rsync would fail) I'd like to be notified vs. checking 
> everyday.
>
> So, for instance:
>
> #!/bin/sh
> rsync -azurv -e ssh spaceman at 10.0.1.2:/Users/spaceman/docs  .  #I 
> changed docs to Docs for example
> if [ $? -eq 1]
> then mail -s "backup failed" spaceman
> fi
>
> The process fails, but just hangs and doesn't exit to mail the error 
> msg.
> Any suggestions?
>
> Steve Mallett
>
>

Please ignore --timeout=XX
duh
Steve Mallett




More information about the rsync mailing list