- Code: Select all
C:\
Libs
LibFile.pas
Projects
Project1
ProjectFile1.pas
<symlink to>LibFile1.pas
Project2
ProjectFile2.pas
<symlink to>LibFile1.pas
and that's how I want it replicated on PC2 - both projects will share the same copy of LibFile.pas (things are arranged like this in an attempt to play nicely with Git, which likes all the files of a project to reside in the same folder tree).
Files and folders sync both ways fine, but I can't get the link to copy. I have tried various combinations of the symlink file settings, but I either get nothing copied, or the file is copied so that on PC2 I end up with 3 copies of LibFile. I want to copy the link, not file file it points to.
Is this possible, or am I missing something?
EDIT
Just to be clear, the backing up of the file LibFile.pas isn't the issue. That's already taken care of because the sync includes both the Libs and the Projects folders. The scenario I want to cater for is where I create a symlink on PC1 and I want the same symlink to automatically get created on PC2.