rsync 3.0.7 - error deleting directory

Matt McCutchen matt at
Sat Mar 6 15:09:20 MST 2010

[Going through old email.]

On Fri, 2010-02-05 at 08:24 +0100, Philipp Herz - allied internet ag
> based on a nightly cronjob we use "rsync --delete" to delete partitial 
> directory structure from a backup folder. Sometimes rsync is unable to 
> delete structure as told.
> rsync: unlink "/backup/usr/lib/gcc/x86_64-linux-gnu/4.1.3" failed: Is a 
> directory (21)
> rsync error: some files/attrs were not transferred (see previous errors) 
> (code 23) at main.c(1042) [sender=3.0.7]

That's weird, rsync shouldn't be trying to unlink a directory.  If you
can still reproduce this, please post strace output for the generator so
we can see what is going on.


More information about the rsync mailing list