Synchronize folder content through a symbolic link

Lluc Pallejà <[email protected]>
Newsgroups gmane.network.unison.general
Message-ID <[email protected]>
Hi,

I'm trying to sync my Sublime Text profile folder which on Mac OS is 
located under /Users/llucps/Library/Application Support/Sublime\ Text/

So what I've done is a symbolic link into a folder called profiles 
/Users/llucps/.doc/profiles like this:

ln -s /Users/llucps/Library/Application Support/Sublime\ Text/ .

which creates the symbolic link, and then on my profile file I specified 
the follow = Path  "profiles/Sublime\ Text"

# Unison preferences file
root = ssh://[email protected]/doc/
root = /Users/llucps/.doc/
follow = Path "profiles/Sublime\ Text"

Doing this it only synchronizes the /Users/llucps/Library/Application 
Support/Sublime\ Text/ as a string, but I want is to synchronize the 
content of that folder.

So when I list the directory on the remote replica ls -la 
/Users/llucps/mount/doc/profiles/Sublime\ Text

I get this:

  /Users/llucps/mount/doc/profiles/Sublime Text -> 
/Users/llucps/Library/Application Support/Sublime Text/

which is only the string pointing at the profile.

I looked at the documentation but I'm not grasping whether what I'm 
trying to do is the correct way to do it, and if it's possible at all.

Ordinarily, Unison treats symbolic links in Unix replicas as “opaque”:
    it considers the contents of the link to be just the string specifying
    where the link points, and it will propagate changes in this string to
    the other replica.

    It is sometimes useful to treat a symbolic link “transparently,” acting
    as though whatever it points to were physically in the replica at the
    point where the symbolic link appears. To tell Unison to treat a link
    in this manner, add a line of the form
              follow = pathspec

    to the profile, where pathspec is a path pattern as described in the
    section “Path Specification” .

Any help is much appreciated.

Thanks,
Lluc

-- 
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.