On Wed, Sep 26, 2012 at 08:13:48AM +1200, Claudio Contin wrote: > So setting the ignore uid and gid, does copy the new files with root > ownership/group ?
I think it ignores the uid/gid, and thus for newly created things will inherit uid/gid from the receiving csync2 process uid/gid, which typically is root:root. > On Wed, Sep 26, 2012 at 12:23 AM, Lars Ellenberg > <lars.ellenb...@linbit.com>wrote: > > > On Tue, Sep 25, 2012 at 09:00:13AM +1200, Claudio Contin wrote: > > > I found out that csync persists ownership of the files; the problem the > > > UUID on the 2 servers is not the same. > > > I can get around that. > > > > There is the "ignore" statement. > > > > ignore uid gid; > > > > May be what you are looking for. > > > > If you look for some textual matching on the "name", > > csync2 does not have that (yet). > > It basically always does the "numeric-ids" mode. > > > > You'd need to enhance the "SETOWN" command in the csync2 protocol. > > > > Lars > > > > > Thanks > > > > > > On Tue, Sep 25, 2012 at 8:50 AM, Claudio Contin < > > > claudio.con...@sharesight.co.nz> wrote: > > > > > > > Hi, > > > > I'm new with csync2. > > > > > > > > I'm setting up for a small cluster (at the moment only 2 nodes). > > > > > > > > My configuration on both nodes is the following: > > > > > > > > group cluster > > > > { > > > > host server1; > > > > host server2; > > > > key /etc/csync2.key; > > > > include /var/apps/sync; > > > > } > > > > nossl * *; > > > > > > > > > > > > When I run csync2 -x everything works fine, but the ownership of the > > files > > > > is not root on the other node. > > > > I was thinking to change the ownership after each csync2, but the > > > > ownership change triggers the file as modified, and this ends up in a > > loop. > > > > > > > > How do I specify file permission for csync2? I can't find any > > > > configuration option about. > > > > > > -- > > : Lars Ellenberg > > : LINBIT | Your Way to High Availability > > : DRBD/HA support and consulting http://www.linbit.com > > > > DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. > > _______________________________________________ > > Csync2 mailing list > > Csync2@lists.linbit.com > > http://lists.linbit.com/mailman/listinfo/csync2 > > > > > > -- > *Claudio Contin* > *Senior Software Developer* > Sharesight Limited > _______________________________________________ > Csync2 mailing list > Csync2@lists.linbit.com > http://lists.linbit.com/mailman/listinfo/csync2 -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. _______________________________________________ Csync2 mailing list Csync2@lists.linbit.com http://lists.linbit.com/mailman/listinfo/csync2