delete fails to delete everything it should like dangling symlinks

Phil Howard phil-rsync at ipal.net
Sat Mar 9 13:08:59 EST 2002


On Fri, Mar 08, 2002 at 09:46:46AM -0700, tim.conway at philips.com wrote:

| Try it without "--delete-after".  I'm pretty sure that --delete-after also 
| affects --force, so I think it's trying to write to the directory pointed 
| to by the symlink, which doesn't exist.  I could be wrong, but that looks 
| like the most likely interaction.

Same problem:

=============================================================================
root at pollux:/home/root/src 347> rsync --checksum --copy-unsafe-links --compress '--exclude=*~' '--exclude=#*#' --force --group --links --owner --partial --perms --progress --recursive --timeout=150 --times --verbose --delete --delete-excluded --ignore-errors --force /home/root/src-pub/ /home/root/src/
rsync: building file list...
rsync: 809 files to consider.
readlink openssl-0.9.6b/work/openssl-0.9.6b/crypto/des/asm/perlasm: No such file or directory
readlink openssl-0.9.6c/tmp/openssl-0.9.6c/crypto/des/asm/perlasm: No such file or directory
wrote 34720 bytes  read 20 bytes  2395.86 bytes/sec
total size is 85523958  speedup is 2461.83
rsync error: partial transfer (code 23) at main.c(576)
root at pollux:/home/root/src 348>
=============================================================================

The --copy-unsafe-links seems to be the culprit.  If I take that out it then
works to delete these symlinks.  ATM I can't recall why I put that in.  I'm
sure I'll find out soon enough unless it was some bug from an older version
that is now fixed.

-- 
-----------------------------------------------------------------
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| phil-nospam at ipal.net | Texas, USA | http://phil.ipal.org/     |
-----------------------------------------------------------------




More information about the rsync mailing list