0

I'm trying to setup rsync to work with symlinks.

Client to Server: For example on my client machine I have a symlink, when I sync to server, it syncs the actual file, which is what I want.

Server to Client: On the server, if I update the file and sync from server to client, it's replacing my symlink with the file, this is not what I want.

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

I've been messing around with the options and can't get it right

Any ideas?

Thanks.

makstaks
  • 101

1 Answers1

0

I think if you simply do rsync -a client/ server/ and rsync -a server/ client/ you should be OK. I tested this with a symlink to a file, and every edit of my file on both sides resulted in an updated file and the symlink was left intact.

timd
  • 91
  • 1
  • 4