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">&lt;<a href="mailto:lars.ellenberg@linbit.com" target="_blank">lars.ellenberg@linbit.com</a>&gt;</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>
&gt; I found out that csync persists ownership of the files; the problem the<br>
&gt; UUID on the 2 servers is not the same.<br>
&gt; I can get around that.<br>
<br>
</div>There is the &quot;ignore&quot; 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 &quot;name&quot;,<br>
csync2 does not have that (yet).<br>
It basically always does the &quot;numeric-ids&quot; mode.<br>
<br>
You&#39;d need to enhance the &quot;SETOWN&quot; command in the csync2 protocol.<br>
<br>
        Lars<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; Thanks<br>
&gt;<br>
&gt; On Tue, Sep 25, 2012 at 8:50 AM, Claudio Contin &lt;<br>
&gt; <a href="mailto:claudio.contin@sharesight.co.nz">claudio.contin@sharesight.co.nz</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt; I&#39;m new with csync2.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m setting up for a small cluster (at the moment only 2 nodes).<br>
&gt; &gt;<br>
&gt; &gt; My configuration on both nodes is the following:<br>
&gt; &gt;<br>
&gt; &gt; group cluster<br>
&gt; &gt; {<br>
&gt; &gt;          host server1;<br>
&gt; &gt;          host server2;<br>
&gt; &gt;          key /etc/csync2.key;<br>
&gt; &gt;          include /var/apps/sync;<br>
&gt; &gt; }<br>
&gt; &gt; nossl * *;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; When I run csync2 -x everything works fine, but the ownership of the files<br>
&gt; &gt; is not root on the other node.<br>
&gt; &gt; I was thinking to change the ownership after each csync2, but the<br>
&gt; &gt; ownership change triggers the file as modified, and this ends up in a loop.<br>
&gt; &gt;<br>
&gt; &gt; How do I specify file permission for csync2? I can&#39;t find any<br>
&gt; &gt; 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>