Re: rootalias does not work with symlink

Vojtěch Čermák <[email protected]> Tue, 25 Mar 2025 09:09:29 -0700 (PDT)
Newsgroups gmane.network.unison.general
Message-ID <[email protected]>

Why are you setting paths for root?  

 
I could use the symlink, but since I have now a script editing the the 
profile file I edit also the root so I don't have to create the symlink 
anymore.

It would seem that your archive 
file has a particular root value encoded in it, and what you need to do 
is to configure rootalias with LHS matching what is in the archive file 
and RHS matching the new location. 


Yes, that is what I do (though you switched LHS for RHS).
 

I think you are running into Unison was designed and coded during a time 
when volumes were not mounted to random names. There are two 
traditions: 

mount a filesystem on removable drive on /mnt 

somehow get a name or uuid from the filesystem and mount it at that 
name 


If you want to do better than your wrapper, I suggest you read the code 
to first get a clear understanding of what is going on and why. I would 
be very reluctant to stir the pot by deciding to invert how it is. 

You figuring out how it really is now, and sending in a patch to the 
manual/man page to very briefly state about [pwd -L/-P] would be welcome. 


I am afraid that looking at unison's code is beyond my skill, I was glad I 
managed to put together a bash script that solved my problem.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].