[Csync2] csync2 doesn't like "include /;"?
Lars Kellogg-Stedman
lars at oddbit.com
Thu Sep 25 15:50:02 CEST 2008
I've been happily using csync2 for several months now to sync specific
directories around various groups of machines. I've recently looked
at the issue of how to keep two (or more) systems completely in sync.
I tried what seemed like the obvious configuration:
group cluster {
host cluster0;
host cluster1;
key /etc/csync2/cluster.key;
include /;
<various exclude lines elided>
}
But this doesn't work. csync2 -xvv yields output like:
Running recursive check for / ...
SQL: SELECT filename from file where filename = '/' or 1 ORDER BY filename
SQL Query finished.
Match (+): / on /
Checking /.
SQL: SELECT checktxt FROM file WHERE filename = '/'
SQL Query finished.
Checking /* ..
Don't check at all: /usr
Don't check at all: /srv
Don't check at all: /sbin
.
.
.
I've made it work, mostly, by changing:
include /;
To:
include /*;
This seems to make everything happy, but I'm curious why the original
config wouldn't work. Incidentally, I'm running csync2 1.34. Thanks
for your help!
--
Lars Kellogg-Stedman <lars at oddbit.com>
More information about the Csync2
mailing list