return status of rsync

tim.conway at tim.conway at
Tue Dec 18 02:41:15 EST 2001

instead of "*", which may not match anything, and thus name something that 
doesn't exist, try using ".", which is the current directory.  This isn't 
dos, and * has no special meaning to rsync.  it is, rather, globbed by 
your shell, being replaced by whatever it matches, or returned as a 
literal "*". 

Tim Conway
tim.conway at
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn, 
".\n" '
"There are some who call me.... Tim?"

"Kapoor, Nishikant X" <Nishikant.X.Kapoor at>
Sent by: rsync-admin at
12/17/2001 08:29 AM

        To:     rsync at
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        return status of rsync


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 mailing list