[Csync2] csync2 not syncing symlinks?!

Lars Ellenberg lars.ellenberg at linbit.com
Thu Feb 21 15:58:16 CET 2008


On Thu, Feb 21, 2008 at 03:10:47PM +0100, Wolfram Schlich wrote:
> Hi,
> 
> it seems that csync2 is just not syncing symlinks.
> Is that true?
> If yes, why the heck...?! :)
> 
> Scenario:
> - /etc/csync2/csync2.cfg: include /usr/lib/something;
> - /usr/lib is a symlink to /usr/lib64
> - csync2 does not sync /usr/lib/something
> 
> csync2 does this:
> --8<--
> pollux csync2-1.34 # csync2 -vvvvvxr 2>&1 | grep /usr
> Checking /usr/* ..
> Don't check at all: /usr/x86_64-pc-linux-gnu
> Don't check at all: /usr/tmp
> Don't check at all: /usr/src
> Don't check at all: /usr/share
> Don't check at all: /usr/sbin
> Don't check at all: /usr/portage
> Don't check at all: /usr/local
> Don't check at all: /usr/libexec
> Don't check at all: /usr/lib64
> Don't check at all: /usr/lib32
> Don't check at all: /usr/include
> Don't check at all: /usr/i686-pc-linux-gnu
> Don't check at all: /usr/bin
> --8<--
> 
> When I change csync2.cfg to 'include /usr/lib64/something;',
> it *does* sync that file.
> 
> The observed behaviour really sucks... :(
> Are there plans to change this?

not at all.
works as designed.
of course it is syncing symlinks.

what you complain about is that it does not _follow_ symlinks,
when you configure them in your config file.

well, the problem is, it cannot do both, sync symlinks and follow them
in the config file during directory traversal.

the intended behaviour is

    /etc/someconfig-file  is symlink to /etc/someconfig-file.version1

in csync2.cfg, there is
   include /etc/someconfig-file;
   (and, obviously, someconfig-file.version1, version2, version3)

you want to switch configs, you do change the symlink on one box,
and sync that change, and csync2 will let the symlink point to that
other file on all other boxes.

ln -sf /etc/someconfig-file.version2 /etc/someconfig-file
csync2 -xv /etc/someconfig-file


-- 
: Lars Ellenberg                            Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :


More information about the Csync2 mailing list