return status of rsync
Kapoor, Nishikant X
Nishikant.X.Kapoor at xcelenergy.com
Tue Dec 18 02:29:58 EST 2001
rsync returns zero if it is successful but a non-zero (2816) if it can
not find any file(s) to move across. Just curious if that should still
return zero ?
nkapoor> rsync -av * nk01::incoming
building file list ... * : No such file or directory
wrote 73 bytes read 337 bytes 820.00 bytes/sec
total size is 0 speedup is 0.00
I am trying to use this return status to determine if the rsync
operation was successful. But the source may or may not have any files
to send. Is there a better way to do this ?
More information about the rsync