So setting the ignore uid and gid, does copy the new files with root ownership/group ?<br><br><div class="gmail_quote">On Wed, Sep 26, 2012 at 12:23 AM, Lars Ellenberg <span dir="ltr"><<a href="mailto:lars.ellenberg@linbit.com" target="_blank">lars.ellenberg@linbit.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Sep 25, 2012 at 09:00:13AM +1200, Claudio Contin wrote:<br>
> I found out that csync persists ownership of the files; the problem the<br>
> UUID on the 2 servers is not the same.<br>
> I can get around that.<br>
<br>
</div>There is the "ignore" statement.<br>
<br>
ignore uid gid;<br>
<br>
May be what you are looking for.<br>
<br>
If you look for some textual matching on the "name",<br>
csync2 does not have that (yet).<br>
It basically always does the "numeric-ids" mode.<br>
<br>
You'd need to enhance the "SETOWN" command in the csync2 protocol.<br>
<br>
Lars<br>
<div class="HOEnZb"><div class="h5"><br>
> Thanks<br>
><br>
> On Tue, Sep 25, 2012 at 8:50 AM, Claudio Contin <<br>
> <a href="mailto:claudio.contin@sharesight.co.nz">claudio.contin@sharesight.co.nz</a>> wrote:<br>
><br>
> > Hi,<br>
> > I'm new with csync2.<br>
> ><br>
> > I'm setting up for a small cluster (at the moment only 2 nodes).<br>
> ><br>
> > My configuration on both nodes is the following:<br>
> ><br>
> > group cluster<br>
> > {<br>
> > host server1;<br>
> > host server2;<br>
> > key /etc/csync2.key;<br>
> > include /var/apps/sync;<br>
> > }<br>
> > nossl * *;<br>
> ><br>
> ><br>
> > When I run csync2 -x everything works fine, but the ownership of the files<br>
> > is not root on the other node.<br>
> > I was thinking to change the ownership after each csync2, but the<br>
> > ownership change triggers the file as modified, and this ends up in a loop.<br>
> ><br>
> > How do I specify file permission for csync2? I can't find any<br>
> > configuration option about.<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
: Lars Ellenberg<br>
: LINBIT | Your Way to High Availability<br>
: DRBD/HA support and consulting <a href="http://www.linbit.com" target="_blank">http://www.linbit.com</a><br>
<br>
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.<br>
_______________________________________________<br>
Csync2 mailing list<br>
<a href="mailto:Csync2@lists.linbit.com">Csync2@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/csync2" target="_blank">http://lists.linbit.com/mailman/listinfo/csync2</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><b>Claudio Contin</b><br><i>Senior Software Developer</i><br>Sharesight Limited<br><br>