rsync hangs during --remove-source-files

Matt McCutchen matt at
Tue Oct 14 00:37:38 GMT 2008

On Mon, 2008-10-13 at 21:19 +0800, Thomas Gutzler wrote:
> I'm using the following command to move files from a to b:
> rsync -avvvv --remove-source-files --ignore-existing /path/to/dir1/
> /path/to/dir2 >> logfile
> dir2 isn't empty so I only move files from dir1 to dir2 that don't exist
> already.
> Every so often rsync stops in the middle and doesn't continue with the
> result that I have to kill it.

> Any suggestions how to debug this so that I can find out what's going
> on? Unfortunately I haven't found a way to reproduce it. Every time I
> kill and execute the same command again, it works.

The next time rsync hangs, before you kill it, attach gdb to each of the
three rsync processes ("gdb /PATH/TO/rsync PID") and get a stack trace
("bt").  Wayne should have more suggestions for what information would
be helpful for debugging.


More information about the rsync mailing list