If there is a lame symlink in the target location, rsync with the
--delete option, even with the --ignore-errors option, fails to
delete the symlink (the source doesn't have the symlink). How
can I get rsync to really delete everything in the target that is
not present in the source (respecting --delete-excluded or the
lack thereof as appropriate) ?
Here's the output from my script that uses rsync to replicate
source files I'm compiling. In this case, the symlinks are in
the source tarball, and they point to files that don't exist (but
I assume get created at some point during compile, under some
circumstances).
=============================================================================
rsync --checksum --copy-unsafe-links --compress --exclude=*~ --exclude=#*# --group
--hard-link --links --owner --partial --perms --progress --recursive --timeout=150
--times --verbose --delete --delete-after --delete-excluded --ignore-errors --force
pollux::src/. .
receiving file list ... done
readlink openssl-0.9.6a/work/openssl-0.9.6a/crypto/des/asm/perlasm: No such file or
directory
readlink openssl-0.9.6a/work/openssl-0.9.6a/include/openssl/engine.h: No such file or
directory
readlink openssl-0.9.6a/work/openssl-0.9.6a/test/enginetest.c: No such file or
directory
wrote 181 bytes read 22239 bytes 3449.23 bytes/sec
total size is 46788201 speedup is 2086.90
=============================================================================
--
-----------------------------------------------------------------
| Phil Howard - KA9WGN | Dallas | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/ |
-----------------------------------------------------------------