rsync deleting symbolic link unexpectedly
hashproduct at verizon.net
Tue Dec 20 21:27:52 GMT 2005
On Tue, 2005-12-20 at 11:40 -0800, Eric Horne wrote:
> rsync -rlptDvzL --stats --include=a/ --include=a/dir/
> --include=a/dir/symlink/ --include=a/dir/symlink/dir2/
> --include=a/dir/symlink/dir2/dir3/ --exclude='**' /export/stuff
Since you gave the -L/--copy-links option, the sending rsync pretended
its symlink was a real directory, and since you didn't give
-K/--keep-dirlinks, the receiving rsync turned its symlink into a real
directory to match. -L overrides -l. Take out -L and it should work.
Matt McCutchen, ``hashproduct''
hashproduct at verizon.net -- http://hashproduct.metaesthetics.net/
More information about the rsync