Re: unison bug that deletes all files in directory?
Keith Wansbrough <keith.wansbrough <at> cl.cam.ac.uk>
2005-03-03 10:41:43 GMT
> Since using unison 2.9.1 (host and client are windows machines), I've
> had the extremely disturbing experience of having all the files in a
> directory deleted. Different directories were effected each time, but
> both are listed as directories to keep synchronized between machines.
> Since I've never seen this behavior before, I have to wonder if
> Unison is to blame. Perhaps the only odd thing about my setup is that
> I wanted my files to live in different directories on each machine,
> so what I did was set up windows "hard" links (also know as
> junctions, you need a special tool to make them) on both machines.
> These junctions have the same name on each machine, but point at
> different targets.
That seems pretty odd to me, and I wouldn't be surprised if Unison
doesn't know how to interpret reparse points (junctions etc) when it
encounters them. I suspect Unison is using an interface that reveals
the reparse point, rather than following it, and this would cause the
behaviour you report.
[They're more like symlinks than hard links, btw, and this is
In any case, if I understand you correctly, there's no need for you to
use junctions anyway - why not just sync c:\dir1 on machine 1 with
x:\dir2\dir3 on machine 2?
For anyone else's information, here's a couple of pages I found on the
'net describing reparse points and junctions: