Displaying 1 result from an estimated 1 matches for "azurv".
Did you mean:
azure
2002 Nov 21
0
PLS Ignore [was: rsync over ssh - reporting errors]
...ox, 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@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?
>
>...