From infos at e-blokos.com  Sun Aug  1 00:52:09 2010
From: infos at e-blokos.com (E-Blokos)
Date: Sat, 31 Jul 2010 18:52:09 -0400
Subject: [Csync2] busy files
References: <1280159871.2668.30.camel@thinkpad><001801cb2d07$fd38a500$f7a9ef00$@biz><20100727122601.GC25769@barkeeper1-xen.linbit><001b01cb2d90$73cf7f30$5b6e7d90$@biz><20100727140804.GE25769@barkeeper1-xen.linbit><002801cb2ddb$18f9e870$4aedb950$@biz><20100728120325.GB3895@barkeeper1-xen.linbit><002c01cb2e51$649c1390$2dd43ab0$@biz><20100728124844.GD3895@barkeeper1-xen.linbit><003b01cb2e63$dac3b4d0$904b1e70$@biz>
	<20100728165850.GG3895@barkeeper1-xen.linbit>
Message-ID: <2F47D21FAA824E47A7D4EB11BD00A985@MOBILEE1705>

Hi,

is csync2 tries to sync files even if
there are busy or opened by a user app ?

Thanks

Franck

From diego at woitasen.com.ar  Sun Aug  8 01:00:06 2010
From: diego at woitasen.com.ar (Diego Woitasen)
Date: Sat, 7 Aug 2010 20:00:06 -0300
Subject: [Csync2] busy files
In-Reply-To: <2F47D21FAA824E47A7D4EB11BD00A985@MOBILEE1705>
References: <1280159871.2668.30.camel@thinkpad>
	<001801cb2d07$fd38a500$f7a9ef00$@biz>
	<20100727122601.GC25769@barkeeper1-xen.linbit>
	<001b01cb2d90$73cf7f30$5b6e7d90$@biz>
	<20100727140804.GE25769@barkeeper1-xen.linbit>
	<002801cb2ddb$18f9e870$4aedb950$@biz>
	<20100728120325.GB3895@barkeeper1-xen.linbit>
	<002c01cb2e51$649c1390$2dd43ab0$@biz>
	<20100728124844.GD3895@barkeeper1-xen.linbit>
	<003b01cb2e63$dac3b4d0$904b1e70$@biz>
	<20100728165850.GG3895@barkeeper1-xen.linbit>
	<2F47D21FAA824E47A7D4EB11BD00A985@MOBILEE1705>
Message-ID: <AANLkTikKTZA7HHr7E09veuDc9equzpSB+BdH_5eJ1Gu5@mail.gmail.com>

2010/7/31 E-Blokos <infos at e-blokos.com>:
> Hi,
>
> is csync2 tries to sync files even if
> there are busy or opened by a user app ?
>
> Thanks
>
> Franck
> _______________________________________________
> Csync2 mailing list
> Csync2 at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/csync2
>

Yes


-- 
Diego Woitasen

From dennis at schafroth.dk  Sat Aug 21 23:05:27 2010
From: dennis at schafroth.dk (Dennis Schafroth)
Date: Sat, 21 Aug 2010 23:05:27 +0200
Subject: [Csync2] Working on database abstration layer and mysql support
Message-ID: <0169341A-FCD6-4D27-A948-1A4BB0C670CC@schafroth.dk>

Hey, 

I am working on a patch to introduce a simple database abstraction layer, so it will be easier to introduce alternative databases. I also have the a basic mysql version (almost) working, it has crashed on a OpenSuse box, but worked on my Fedora boxes.

If there are any brave volunteers, that wants to try, let me know. It wont be clean at the moment. 

cheers, 

:-Dennis Schafroth

 

From lars.ellenberg at linbit.com  Sun Aug 22 21:51:15 2010
From: lars.ellenberg at linbit.com (Lars Ellenberg)
Date: Sun, 22 Aug 2010 21:51:15 +0200
Subject: [Csync2] Working on database abstration layer and mysql support
In-Reply-To: <0169341A-FCD6-4D27-A948-1A4BB0C670CC@schafroth.dk>
References: <0169341A-FCD6-4D27-A948-1A4BB0C670CC@schafroth.dk>
Message-ID: <20100822195115.GC19240@mail.linbit.com>

On Sat, Aug 21, 2010 at 11:05:27PM +0200, Dennis Schafroth wrote:
> Hey, 
> 
> I am working on a patch to introduce a simple database abstraction
> layer, so it will be easier to introduce alternative databases. I also
> have the a basic mysql version (almost) working, it has crashed on a
> OpenSuse box, but worked on my Fedora boxes.
> 
> If there are any brave volunteers, that wants to try, let me know. It
> wont be clean at the moment. 

Great.
Please post a unified diff against latest svn to this list.
Or, if you prefer, send it pm my way.
Or put it online as git/mercurial/whatever.

Thanks,

-- 
: 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.

From dennis at schafroth.dk  Mon Aug 23 00:01:11 2010
From: dennis at schafroth.dk (Dennis Schafroth)
Date: Mon, 23 Aug 2010 00:01:11 +0200
Subject: [Csync2] Working on database abstration layer and mysql support
In-Reply-To: <20100822195115.GC19240@mail.linbit.com>
References: <0169341A-FCD6-4D27-A948-1A4BB0C670CC@schafroth.dk>
	<20100822195115.GC19240@mail.linbit.com>
Message-ID: <595FB809-E12B-45E0-BB9E-2723C229CE96@schafroth.dk>

Hi 

Stupid me did the work against the the released version and not the latest trunk, so it has taken a little longer than expected, but I am getting closer. 

cheers, 
:-Dennis


On 22/08/2010, at 21.51, Lars Ellenberg wrote:

> On Sat, Aug 21, 2010 at 11:05:27PM +0200, Dennis Schafroth wrote:
>> Hey, 
>> 
>> I am working on a patch to introduce a simple database abstraction
>> layer, so it will be easier to introduce alternative databases. I also
>> have the a basic mysql version (almost) working, it has crashed on a
>> OpenSuse box, but worked on my Fedora boxes.
>> 
>> If there are any brave volunteers, that wants to try, let me know. It
>> wont be clean at the moment. 
> 
> Great.
> Please post a unified diff against latest svn to this list.
> Or, if you prefer, send it pm my way.
> Or put it online as git/mercurial/whatever.
> 
> Thanks,
> 
> -- 
> : 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 at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/csync2
> 


From ard+csync2 at telegraafnet.nl  Mon Aug 23 11:05:00 2010
From: ard+csync2 at telegraafnet.nl (Art -kwaak- van Breemen)
Date: Mon, 23 Aug 2010 11:05:00 +0200
Subject: [Csync2] Working on database abstration layer and mysql support
In-Reply-To: <0169341A-FCD6-4D27-A948-1A4BB0C670CC@schafroth.dk>
References: <0169341A-FCD6-4D27-A948-1A4BB0C670CC@schafroth.dk>
Message-ID: <20100823090459.GH15321@telegraafnet.nl>

Hi,

On Sat, Aug 21, 2010 at 11:05:27PM +0200, Dennis Schafroth wrote:
> I am working on a patch to introduce a simple database abstraction layer, so it will be easier to introduce alternative databases. I also have the a basic mysql version (almost) working, it has crashed on a OpenSuse box, but worked on my Fedora boxes.
> 
> If there are any brave volunteers, that wants to try, let me know. It wont be clean at the moment. 

You might also check out my patches from this winter.
It creates a seperate daemon that abstracts csync2 calls into rpc
calls. (Actually it's more of an sql daemon).
Because of the abstraction it's easy to talk to another database
from within the daemon.
I have this working for a long time, and it takes away any
locking issues by serializing the requests to the sqlite
database. The downside is that you cannot access the sqlite
database with sqlite3 :-).
But the main point was: the abstraction layer and rpc was working
pretty well.


Regards,
Ard

From prashant at bluebarracuda.com  Mon Aug 23 23:13:12 2010
From: prashant at bluebarracuda.com (Prashant Ramhit)
Date: Mon, 23 Aug 2010 22:13:12 +0100
Subject: [Csync2] Csync2 Digest, Vol 55, Issue 4
In-Reply-To: <mailman.3.1282557604.27354.csync2@lists.linbit.com>
References: <mailman.3.1282557604.27354.csync2@lists.linbit.com>
Message-ID: <4C72E468.3060809@bluebarracuda.com>

Hi Lars,
Please send me the latest svn, I have 800GB and approx 750,000 files to 
test sync.
I'll try on on a slackware and an ubuntu 10.04 box.

Regards,
Prashant Ramhit



On 23/08/10 11:00, csync2-request at lists.linbit.com wrote:
> Send Csync2 mailing list submissions to
> 	csync2 at lists.linbit.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.linbit.com/mailman/listinfo/csync2
> or, via email, send a message with subject or body 'help' to
> 	csync2-request at lists.linbit.com
>
> You can reach the person managing the list at
> 	csync2-owner at lists.linbit.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Csync2 digest..."
>
>
> Today's Topics:
>
>     1. Re: Working on database abstration layer and mysql support
>        (Lars Ellenberg)
>     2. Re: Working on database abstration layer and mysql support
>        (Dennis Schafroth)
>     3. Re: Working on database abstration layer and mysql support
>        (Art -kwaak- van Breemen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 22 Aug 2010 21:51:15 +0200
> From: Lars Ellenberg<lars.ellenberg at linbit.com>
> Subject: Re: [Csync2] Working on database abstration layer and mysql
> 	support
> To: csync2 at lists.linbit.com
> Message-ID:<20100822195115.GC19240 at mail.linbit.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> On Sat, Aug 21, 2010 at 11:05:27PM +0200, Dennis Schafroth wrote:
>    
>> Hey,
>>
>> I am working on a patch to introduce a simple database abstraction
>> layer, so it will be easier to introduce alternative databases. I also
>> have the a basic mysql version (almost) working, it has crashed on a
>> OpenSuse box, but worked on my Fedora boxes.
>>
>> If there are any brave volunteers, that wants to try, let me know. It
>> wont be clean at the moment.
>>      
> Great.
> Please post a unified diff against latest svn to this list.
> Or, if you prefer, send it pm my way.
> Or put it online as git/mercurial/whatever.
>
> Thanks,
>
>    


-- 
*Prashant Ramhit*
is the Systems Administrator at


Blue Barracuda UK
t: +44 (0)20 7400 0950
Sweeps Building,
34 Leather Lane,
London,
EC1N 7SQ
*www.bluebarracuda.com* <http://www.bluebarracuda.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20100823/3454aa04/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb.gif
Type: image/gif
Size: 2229 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20100823/3454aa04/attachment.gif>

From prashant at bluebarracuda.com  Mon Aug 23 23:25:49 2010
From: prashant at bluebarracuda.com (Prashant Ramhit)
Date: Mon, 23 Aug 2010 22:25:49 +0100
Subject: [Csync2] Csync2 Digest, Vol 55, Issue 4
Message-ID: <4C72E75D.8010006@bluebarracuda.com>

Hi Lars,
Please send me the latest svn, I have 800GB and approx 750,000 files to 
test sync.
I'll try on on a slackware and an ubuntu 10.04 box.

Regards,
Prashant Ramhit
-- 
*Prashant Ramhit*
is the Systems Administrator at


Blue Barracuda UK
t: +44 (0)20 7400 0950
Sweeps Building,
34 Leather Lane,
London,
EC1N 7SQ
*www.bluebarracuda.com* <http://www.bluebarracuda.com>


From lars.ellenberg at linbit.com  Tue Aug 24 11:53:08 2010
From: lars.ellenberg at linbit.com (Lars Ellenberg)
Date: Tue, 24 Aug 2010 11:53:08 +0200
Subject: [Csync2] Working on database abstration layer and mysql support
In-Reply-To: <595FB809-E12B-45E0-BB9E-2723C229CE96@schafroth.dk>
References: <0169341A-FCD6-4D27-A948-1A4BB0C670CC@schafroth.dk>
	<20100822195115.GC19240@mail.linbit.com>
	<595FB809-E12B-45E0-BB9E-2723C229CE96@schafroth.dk>
Message-ID: <20100824095308.GB28256@mail.linbit.com>

On Mon, Aug 23, 2010 at 12:01:11AM +0200, Dennis Schafroth wrote:
> Hi 
> 
> Stupid me did the work against the the released version and not the
> latest trunk, so it has taken a little longer than expected, but I am
> getting closer. 

Are you aware of
http://projects.kwaak.net/twiki/bin/view/CSync2/WebHome
also mentioned in this thread:
http://archives.free.net.ph/message/20091215.103844.6976b395.en.html

the csdb stuff would be a starting point for abstraction,
if you want to clean it up. I did some of the merging and cleanup of
those old patches, but thats not publically available :(
I'll try to put the various branches online next week.

On the linbit side, Johannes has done some further work on csync2,
please Cc him on whatever you have.

Thanks,
	Lars

> On 22/08/2010, at 21.51, Lars Ellenberg wrote:
> 
> > On Sat, Aug 21, 2010 at 11:05:27PM +0200, Dennis Schafroth wrote:
> >> Hey, 
> >> 
> >> I am working on a patch to introduce a simple database abstraction
> >> layer, so it will be easier to introduce alternative databases. I also
> >> have the a basic mysql version (almost) working, it has crashed on a
> >> OpenSuse box, but worked on my Fedora boxes.
> >> 
> >> If there are any brave volunteers, that wants to try, let me know. It
> >> wont be clean at the moment. 
> > 
> > Great.
> > Please post a unified diff against latest svn to this list.
> > Or, if you prefer, send it pm my way.
> > Or put it online as git/mercurial/whatever.

-- 
: 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.

From dennis at schafroth.dk  Sun Aug 29 22:36:43 2010
From: dennis at schafroth.dk (Dennis Schafroth)
Date: Sun, 29 Aug 2010 22:36:43 +0200
Subject: [Csync2] Working on database abstration layer and mysql support
In-Reply-To: <F325B9BC-150D-4823-A7F6-B83D41B6B771@schafroth.dk>
References: <0169341A-FCD6-4D27-A948-1A4BB0C670CC@schafroth.dk>
	<20100822195115.GC19240@mail.linbit.com>
	<F325B9BC-150D-4823-A7F6-B83D41B6B771@schafroth.dk>
Message-ID: <6051AC77-43F5-442F-B4AA-CEE1D3AC7A68@schafroth.dk>

Hey,

Attached is a patch to a database abstraction. I have it running on two Fedora 13 and a OpenSUSE 11.3. It should be considered beta status, and I would like to get feed back on how it works for others set-ups (non production!). 


I have mostly tested using MySQL 5. I have done some minor testing on sqlite 3, and haven't seen any regression, but wont promise.

The SQL statements has been modified to a level so they work for these databases, but some more advanced SQL mapping  is prob. needed to support more.

DB API with support for:
- sqlite 2 (not tested), sqlite 3 (somewhat tested), mysql 5  
- New global configuration: database <file with database spec> containing one of: 
	- mysql://user:passwd at host:port/schema 
	- sqlite3://path/to/file
	- sqlite2://path/to/file
- For testing the -a option can be used to give a similar database specification. 
- No support for creating the database and tables in mysql 5. There is a ./sql/csync.sql for creating the tables where it uses UTF-8 binary character encoding, but this must be changed to match your file system setup and case (in)sensitive !!!  

I have done some changes in the autoconf / automake, in which I am no expert. 

mysql support is currently only enabled if you configure with --enable-mysql. 

For a mysql set-up: 
1) configure and built with mysql support
2) create a database as root/admin and grant access to your csync2 user. 
3) create the tables/indexes using the sql/csync2.sql (modified to your setup) 
4) create the database file spec file. 
5) add the global configuration:  database <database spec file> 

Should now be ready to test. 

Also included in the patch is a option for syslog logging (-l) and a change in backup strategy in the daemon. I prefer to create a identical directory tree in the backup, instead of the flat structure. 

cheers, 
:-Dennis Schafroth

On 22/08/2010, at 21.51, Lars Ellenberg wrote:

> On Sat, Aug 21, 2010 at 11:05:27PM +0200, Dennis Schafroth wrote:
>> Hey, 
>> 
>> I am working on a patch to introduce a simple database abstraction
>> layer, so it will be easier to introduce alternative databases. I also
>> have the a basic mysql version (almost) working, it has crashed on a
>> OpenSuse box, but worked on my Fedora boxes.
>> 
>> If there are any brave volunteers, that wants to try, let me know. It
>> wont be clean at the moment. 
> 
> Great.
> Please post a unified diff against latest svn to this list.
> Or, if you prefer, send it pm my way.
> Or put it online as git/mercurial/whatever.
> 
> Thanks,
> 
> -- 
> : 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 at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/csync2
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20100829/b0d583db/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: db_api.patch.gz
Type: application/x-gzip
Size: 21308 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20100829/b0d583db/attachment-0001.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20100829/b0d583db/attachment-0003.htm>

From dennis at schafroth.dk  Mon Aug 30 08:12:50 2010
From: dennis at schafroth.dk (Dennis Schafroth)
Date: Mon, 30 Aug 2010 08:12:50 +0200
Subject: [Csync2] Working on database abstration layer and mysql support
In-Reply-To: <6051AC77-43F5-442F-B4AA-CEE1D3AC7A68@schafroth.dk>
References: <0169341A-FCD6-4D27-A948-1A4BB0C670CC@schafroth.dk>
	<20100822195115.GC19240@mail.linbit.com>
	<F325B9BC-150D-4823-A7F6-B83D41B6B771@schafroth.dk>
	<6051AC77-43F5-442F-B4AA-CEE1D3AC7A68@schafroth.dk>
Message-ID: <FEE274EC-63ED-434E-A9B4-EB32AE527B3D@schafroth.dk>


Two (now) known issue:

Filename column is too short, but this is due to the fact that mysql 5 only supports keys length of max 1000 bytes.

So the filename+peername must be below 333 UTF characters (since mysql looks at worst-case when generating the tables). 

Weird characters in filename cuts off the filename at the character. I have a danish letter (? encoded in iso-8859-1: \370) still present in my 
now UTF-8 filesystem names. 

Two regressions from the current trunk... :-(

cheers, 
:-Dennis

On 29/08/2010, at 22.36, Dennis Schafroth wrote:

> Hey,
> 
> Attached is a patch to a database abstraction. I have it running on two Fedora 13 and a OpenSUSE 11.3. It should be considered beta status, and I would like to get feed back on how it works for others set-ups (non production!). 
> <db_api.patch.gz>
> 
> 
> I have mostly tested using MySQL 5. I have done some minor testing on sqlite 3, and haven't seen any regression, but wont promise.
> 
> The SQL statements has been modified to a level so they work for these databases, but some more advanced SQL mapping  is prob. needed to support more.
> 
> DB API with support for:
> - sqlite 2 (not tested), sqlite 3 (somewhat tested), mysql 5  
> - New global configuration: database <file with database spec> containing one of: 
> 	- mysql://user:passwd at host:port/schema 
> 	- sqlite3://path/to/file
> 	- sqlite2://path/to/file
> - For testing the -a option can be used to give a similar database specification. 
> - No support for creating the database and tables in mysql 5. There is a ./sql/csync.sql for creating the tables where it uses UTF-8 binary character encoding, but this must be changed to match your file system setup and case (in)sensitive !!!  
> 
> I have done some changes in the autoconf / automake, in which I am no expert. 
> 
> mysql support is currently only enabled if you configure with --enable-mysql. 
> 
> For a mysql set-up: 
> 1) configure and built with mysql support
> 2) create a database as root/admin and grant access to your csync2 user. 
> 3) create the tables/indexes using the sql/csync2.sql (modified to your setup) 
> 4) create the database file spec file. 
> 5) add the global configuration:  database <database spec file> 
> 
> Should now be ready to test. 
> 
> Also included in the patch is a option for syslog logging (-l) and a change in backup strategy in the daemon. I prefer to create a identical directory tree in the backup, instead of the flat structure. 
> 
> cheers, 
> :-Dennis Schafroth
> 
> On 22/08/2010, at 21.51, Lars Ellenberg wrote:
> 
>> On Sat, Aug 21, 2010 at 11:05:27PM +0200, Dennis Schafroth wrote:
>>> Hey, 
>>> 
>>> I am working on a patch to introduce a simple database abstraction
>>> layer, so it will be easier to introduce alternative databases. I also
>>> have the a basic mysql version (almost) working, it has crashed on a
>>> OpenSuse box, but worked on my Fedora boxes.
>>> 
>>> If there are any brave volunteers, that wants to try, let me know. It
>>> wont be clean at the moment. 
>> 
>> Great.
>> Please post a unified diff against latest svn to this list.
>> Or, if you prefer, send it pm my way.
>> Or put it online as git/mercurial/whatever.
>> 
>> Thanks,
>> 
>> -- 
>> : 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 at lists.linbit.com
>> http://lists.linbit.com/mailman/listinfo/csync2
>> 
> _______________________________________________
> Csync2 mailing list
> Csync2 at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/csync2

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20100830/5a7b882a/attachment.htm>

From r.fischmann at carcopy.com  Mon Aug 30 14:36:01 2010
From: r.fischmann at carcopy.com (=?ISO-8859-15?Q?Ren=E9_Fischmann?=)
Date: Mon, 30 Aug 2010 14:36:01 +0200
Subject: [Csync2] prefix does not work in separate config file
Message-ID: <4C7BA5B1.3080908@carcopy.com>

Hey,

I'm working with csync2 version 1.34.

I have tried to split my single config file (csync2.cfg) into more.
In the separate configs I use the prefix-option.
If now I tried to call csync2 with the parameter -C, the changed files
are only marked as dirty and not synced.
If I don't use the prefix-option everything works fine.

An examlpe (/etc/csync2/csync2_test.cfg):
nossl * *;
prefix pathtofiles
{
        on host1:    /data/fs/wx_prev/src/;
        on host2:       /data/fs/wx_prev/src/;
}

group test
{
        host host1;
        host host2;

        key /etc/system_group.key;
        include %pathtofiles%;
}

call:
# csync2 -C test -xvr /data/fs/wx_prev/src/test

result:
Marking file as dirty: %pathtofiles%/tmp
Marking file as dirty: %pathtofiles%/tmp/test3.rf
Finished with 0 errors.

Is it not possible to use the prefix-option in separate config files?

Thanks.

Rene Fischmann


From r.fischmann at carcopy.com  Tue Aug 31 13:18:15 2010
From: r.fischmann at carcopy.com (=?ISO-8859-15?Q?Ren=E9_Fischmann?=)
Date: Tue, 31 Aug 2010 13:18:15 +0200
Subject: [Csync2] prefix does not work in separate config file
References: 4C7BA5B1.3080908@carcopy.com
Message-ID: <4C7CE4F7.2030602@carcopy.com>

I've also tested it on two different systems
1. openSuse 10.3 --> csync2 self compiled and
2. openSuse 11.3 --> csync2 installed per yast
allways the same reult.

Additionaly I've tested the prefix-option in the main-config file
(csync2.cfg) in connetcion with the file or path parameter in the csync2
call.
like:
# csync2 -xvr /data/fs/wx_prev/src/test

The changed files are marked as dirty only and not updated, if the given
path or file is mentioned in a prefix-declaration .

Has anyone an assertion?

Ren? Fischmann



On 2010-08-30 12:36, Ren? Fischmann wrote:
> Hey,
>
> I'm working with csync2 version 1.34.
>
> I have tried to split my single config file (csync2.cfg) into more.
> In the separate configs I use the prefix-option.
> If now I tried to call csync2 with the parameter -C, the changed files
> are only marked as dirty and not synced.
> If I don't use the prefix-option everything works fine.
>
> An examlpe (/etc/csync2/csync2_test.cfg):
> nossl * *;
> prefix pathtofiles
> {
> on host1: /data/fs/wx_prev/src/;
> on host2: /data/fs/wx_prev/src/;
> }
>
> group test
> {
> host host1;
> host host2;
>
> key /etc/system_group.key;
> include %pathtofiles%;
> }
>
> call:
> # csync2 -C test -xvr /data/fs/wx_prev/src/test
>
> result:
> Marking file as dirty: %pathtofiles%/tmp
> Marking file as dirty: %pathtofiles%/tmp/test3.rf
> Finished with 0 errors.
>
> Is it not possible to use the prefix-option in separate config files?
>
> Thanks.
>
> Rene Fischmann
>
>

