Bennett Todd [[EMAIL PROTECTED]] writes:

> 2000-12-22-16:11:08 Richard Odom:
> > Is there anything like a completion code that can be captured to use for
> > a check/restart?
> 
> Well, I'm pretty sure rsync exits with nonzero status if it bombs
> off, but I can't say I've had it bomb off enough for me to be
> sure:-).

Yes it does - our process depends heavily on that to understand when a
transfer is fully successful or not (we also use --partial and
--compare-dest).

Note however, that I have discovered recently one fairly rare case
that is an exposure (at least in 2.4.3).  If rsync fails in its call
to rename() to perform the final rename of a file from the temporary
.* name to the official name, it will print a warning message, but
then removes the temporary name anyway (unless --delete-sent was
used).  So you lose the copy, but rsync still exits with a non-zero
code, which makes it look like there was nothing to transfer (e.g., no
change to the file).

But this is a rare case (I've only seen it a handful of times under
WinNT and I think it's an issue with the Cygnus DLL and the WinNT
filesystem since I've seen similar problems with other tools like CVS
that rename files rapidly after they were just written).

-- David

/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: [EMAIL PROTECTED]  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/

Reply via email to