No subject


Wed Mar 11 18:30:44 CET 2015


nossl * *;

group production {
        key /etc/csync-production-group.key;
        host server1;
        host server2;
        include /data;
        exclude /data/conflict;
        exclude *~ .*;
        action {
                pattern /data/*;
                logfile "/var/log/csync2/csync2.log";
                do-local;
        }
        auto none;
}

I'm not getting any logging at all. I can't figure out if the pattern is
wrong or what. I basically want csync2 to log what it does in the log file,
but I can't get it working.

Any help would be greatly appreciated.

Thanks,
Brian

--001a113a7116c5c6c40520b07ece
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;ve got csync2 installed on a couple of Ubuntu server=
s that together with watcher.py will be keeping a large file system synchro=
nized. All the files/directories are under the path /data/ and there is abo=
ut 5 directories there, but under those directories could be hundreds if no=
t thousands of other files and directories.=C2=A0<div><br></div><div>I&#39;=
m basically getting everything setup right now and doing some tests. The sy=
nc part works great together with watcher.py to maintain an almost realtime=
 update.=C2=A0</div><div><br></div><div>The problem I&#39;m having is getti=
ng logging setup and working for csync2. From what I can gather I have to s=
etup an action under the group for the logging. This is what I have in the =
csync2.cfg:</div><div><br></div><div><div>nossl * *;</div><div><br></div><d=
iv>group production {</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 key /etc/csync-=
production-group.key;</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 host server1;</=
div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 host server2;</div><div>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 include /data;</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 exclude =
/data/conflict;</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 exclude *~ .*;</div><=
div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 action {</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 pattern /data/*;</div><div>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 logfile &quot;/var/log/csync2/csy=
nc2.log&quot;;</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 do-local;</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 }</div><div>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 auto none;</div><div>}</div></div><div><br></div><div>=
I&#39;m not getting any logging at all. I can&#39;t figure out if the patte=
rn is wrong or what. I basically want csync2 to log what it does in the log=
 file, but I can&#39;t get it working.</div><div><br></div><div>Any help wo=
uld be greatly appreciated.</div><div><br></div><div>Thanks,</div><div>Bria=
n</div><div><br></div></div>

--001a113a7116c5c6c40520b07ece--


More information about the Csync2 mailing list