When I try to rsync directory1 to directory2 that have symbolic files that point to the same files in directory1, rsync replace all the symbolic files with real files.
I tried to add -L but it didn't help, -K is for symbolic directories. Is there a flag to keep the symbolic files in the target?
command:
mkdir dir1
cd dir1
echo "TEST" > file1
cd ..
cp -as /HOME/dir1 dir2
now dir2 have a symbolic file that point to the file in dir1.
When I try to run:
rsync -nKLri dir1/ dir2/
I get:
>f+++++++++ file1