[Csync2] symlinks
Lars Ellenberg
lars.ellenberg at linbit.com
Wed Nov 3 23:19:37 CET 2010
On Wed, Nov 03, 2010 at 08:53:31PM +0000, Keith Edmunds wrote:
> Is there any reason why csync2 uses the dereferenced path when symlinks
> are involved?
>
> I have one server with the directory tree "/home/samba/shared", and
> another where /home is symlinked to /data/home. On the second server, a
> "csync2 -xvv /home/samba/shared/filename" shows that csync2 is actually
> looking for /data/home/samba/shared/filename, which it ignores because it
> isn't in the csync2.cfg file. This seems wrong to me: given that csync2
> syncs the same directory name on each side, I should be able to use
> symlinks to map a different structure.
There are "prefixes" for that.
prefix home {
on nodeA: /home;
on nodeB: /data/home;
}
...
include %home%/samba/shared
Not sure about trailing slashes on prefixes,
or the slash after %prefixname% from the top of my head.
There should be mention of prefixes in the documentation, though.
having csync2 follow symlinks would be tricky,
as it also replicates symlinks.
So based on what should it decide when should it do what?
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
More information about the Csync2
mailing list