[Csync2] Re: Csync2 Digest, Vol 22, Issue 4
prashant
prashant at bluebarracuda.com
Fri Jul 13 12:10:41 CEST 2007
Hi All,
I changed the data group to datadir and its working fine now..
May be its a reserved word in csync2.
I found that when i used config as a groupname i got a different issue
# updating config
group config
{
host web1;
host web2;
key /etc/cy.key;
include /usr/local/apache2/conf/virtualhost.conf;
action
{
pattern /usr/local/apache2/conf/virtualhost.conf;
exec "/usr/local/apache2/bin/apachectl graceful";
logfile "/var/log/csync2_action.log";
}
# auto none;
}
root at web2:/usr/local/apache2/logs# csync2 -R
Can't open included config file '{'.
root at web2:/usr/local/apache2/logs#
Any way.. csync2 is a very good tool and i am using it to sync my clusters..
Its very stable and easy to install.
Many thanks to Clifford Wolf.
My advice.. is to read the documentation, where all is very clearly
explained.
until then have a good Csyyyynnc2..
Prashant
csync2-request at 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. Sync Groups (prashant)
> 2. Re: Sync Groups (Clifford Wolf)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 12 Jul 2007 16:25:23 +0100
> From: prashant <prashant at bluebarracuda.com>
> Subject: [Csync2] Sync Groups
> To: csync2 at lists.linbit.com
> Message-ID: <469647E3.7080307 at bluebarracuda.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi All,
>
> I am using csync2 with no problem now.. but i have a small issue still...
>
> In my config file i have 2 groups and as explained by the tutorial -G
> show sync a specified group
>
> Therefore I am doing
>
> root at web1:/# csync2 -xv -G webdir -d
> root at web1:/#
> root at web1:/#
>
> But still nothing happens.. not even a message appears
>
>
> My Config File:
>
> root at web1:/# more /etc/csync2.cfg
>
> # sync all webdir only
> group webdir
> {
> host web1;
> host web2;
>
> key /etc/cy.key;
>
> include /usr/local/apache2/htdocs;
>
>
> auto none;
> }
>
>
> # sync data folder only
> group data
> {
> host web1;
> host web2;
>
> key /etc/datacy.key;
>
> include /usr/local/apache2/www/data;
>
> auto none;
> }
>
> May be i am missing somehthing or doing it completely wrong.. help please
>
> Thanks
> Prashant
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 12 Jul 2007 17:39:05 +0200
> From: Clifford Wolf <clifford at clifford.at>
> Subject: Re: [Csync2] Sync Groups
> To: prashant <prashant at bluebarracuda.com>
> Cc: csync2 at lists.linbit.com
> Message-ID: <20070712153905.GO32740 at clifford.at>
> Content-Type: text/plain; charset=us-ascii
>
> On Thu, Jul 12, 2007 at 04:25:23PM +0100, prashant wrote:
>
>> root at web1:/# csync2 -xv -G webdir -d
>>
>> But still nothing happens.. not even a message appears
>>
>
> looks like nothing changed so nothing needs to be synced.
> add more -v to get more information..
>
>
More information about the Csync2
mailing list