are partial files always deleted on interruption?

Carlos Carvalho carlos at fisica.ufpr.br
Sat Jul 4 19:20:54 GMT 2009


Wayne Davison (wayned at samba.org) wrote on 4 July 2009 08:53:
 >On Fri, Jul 03, 2009 at 03:32:29PM -0300, Carlos Carvalho wrote:
 >> Both processes were killed with the same command, kill pid1 pid2.
 >
 >A SIGTERM (the default kill signal) should be caught by rsync, allowing
 >it to cleanup before it exits.

Yes, that's why I gave the explicit kill command, showing it's a SIGTERM.

 >> However I've found that a file was left after interruption, with a
 >> zero size.
 >
 >What kind of file?  A temp file, or the destination file?

A temp one, like .<filename>.<random string>

 >You didn't use --inplace

No.

 >Rsync 2.6.8 had a bug where it could leave a temp file when
 >interrupted, but I don't see any such problem with 3.0.6.

That's why I asked. Isn't there a "leak" when the size is still zero?
It's quite rare to happen and difficult to reproduce.


More information about the rsync mailing list