Using --keep-dirlinks : recursive symlinks problem
Ivan S. Manida
Ivan.Manida at Sun.COM
Fri Aug 20 12:50:45 GMT 2004
trying to make use of the new --keep-dirlinks feature for a synch port;
it works excellent but feels incomplete without a way for rsync to
ignore recursive links.
# ls -la .
drwxrwxr-x 2 bldmstr staff 512 Aug 16 21:42 .
drwxrwxr-x 8 bldmstr staff 512 Aug 16 21:41 ..
lrwxrwxrwx 1 bldmstr staff 2 Aug 20 12:07 bogus -> ..
if you use '--keep-dirlinks --delete' rsync goes into recursion trying
to delete unexisting directory at destination.
Is it possible to introduce a feature, or make it a default to ignore
recursive dirlinks under --keep-dirlinks? Highly doubt this behaviour
would ever be called for :)
Or please kick me in the right direction for a workaround which would
make --keep-dirlinks consider sane symlinks only.
thanks for your time,
Ivan S. Manida, cdev/buildmaster
More information about the rsync