[Csync2] prefix does not work in separate config file

René Fischmann r.fischmann at carcopy.com
Mon Aug 30 14:36:01 CEST 2010


Hey,

I'm working with csync2 version 1.34.

I have tried to split my single config file (csync2.cfg) into more.
In the separate configs I use the prefix-option.
If now I tried to call csync2 with the parameter -C, the changed files
are only marked as dirty and not synced.
If I don't use the prefix-option everything works fine.

An examlpe (/etc/csync2/csync2_test.cfg):
nossl * *;
prefix pathtofiles
{
        on host1:    /data/fs/wx_prev/src/;
        on host2:       /data/fs/wx_prev/src/;
}

group test
{
        host host1;
        host host2;

        key /etc/system_group.key;
        include %pathtofiles%;
}

call:
# csync2 -C test -xvr /data/fs/wx_prev/src/test

result:
Marking file as dirty: %pathtofiles%/tmp
Marking file as dirty: %pathtofiles%/tmp/test3.rf
Finished with 0 errors.

Is it not possible to use the prefix-option in separate config files?

Thanks.

Rene Fischmann



More information about the Csync2 mailing list