rsync finds files to sync which don't exist and then crashes

Matt McCutchen matt at
Sun Sep 27 00:36:28 MDT 2009

On Sat, 2009-09-26 at 14:45 -0700, stefaan wrote:
> I'm running the following script for backup:
> SHORTHOST=`hostname | awk 'BEGIN { FS="." } { print $1 }'`
> cd $HOME || exit 1
> rsync --ignore-errors  --max-size=50m  -v --delete --delete-excluded
> --log-file=/tmp/backup.log --exclude-from=$HOME/.rsync/exclude \
>   --timeout=3 -az \
>   $HOME atticserve:/mnt/store/backup/$SHORTHOST
> At some point it tries to sync the following file:
> stefaan/Pictures/2009-08-29/P1000908.JPG
> This file does not exist, although it used to.

That's really strange and smells of flakiness with the filesystem.  How
specifically did you check that the file does not exist: ls?  Does
"rsync --list-only" show the file?  It may help to run the sending side
of rsync under strace to see its exact interaction with the filesystem.


More information about the rsync mailing list