--keep-dirlinks in combination with --one-file-system

John Van Essen vanes002 at umn.edu
Wed Sep 8 00:17:08 GMT 2004

I've been using the --keep-dirlinks feature of 2.6.3pre1.  I also
use -x (--one-file-system) and --delete-after.

The symlinked directories on the receiver are symlinked to a
partition other than the one where the target of the rsync resides
(that's the whole point of this nifty --keep-dirlinks feature).
I discovered that the symlinked directories are not being processed
for deletions.  Removing the -x option (which actually isn't needed
in this particular case but I had it there from force of habit...)
resolved the problem and a --dry-run shows that the files that I
knew should have been deleted will now be deleted.

So the documentation for --keep-dirlinks should warn that also using
-x (--one-file-system) has a side effect where symlinked directories
followed by --keep-dirlinks that reside on another file system will
not be processed for deletions.
        John Van Essen  Univ of MN Alumnus  <vanes002 at umn.edu>

More information about the rsync mailing list