Rsync symlinks help

I am trying to configure rsync to work with symbolic links.

Client for server: For example, on my client machine, I have a symbolic link, when I synchronize with the server, it synchronizes the actual file, and this is what I want.

Server for client: On the server, if I update the file and synchronize from the server to the client, it replaces my symbolic link to the file, this is not what I want.

Problem: I need a client symlink to stay intact, and rsync to update the actual file on the client.

I talked with options and can not understand.

Any ideas?

Thank.

+3
source share
2 answers

rsync -l !

+11

-l (--links) -l (--copy-links) , ( ) , , . , -K (--keep-dirlinks), . .

0

Source: https://habr.com/ru/post/1794269/


All Articles