Hi Troy,

If not specified, the source is the first and the target is any following ones. 
 For a multi-master setup you would need to create a dbgroup with the required 
setup, a la:

$ bucardo add database dbA <connstring>
$ bucardo add database dbB <connstring>
$ bucardo add dbgroup my_dbs dbA:source dbB:source
$ bucardo add relgroup thetables all tables

Then use that dbgroup when creating the sync:

$ bucardo add sync mySync dbgroup=my_dbs relgroup=thetables

HTH
--
David Christensen
Senior Software and Database Engineer
End Point Corporation
da...@endpoint.com
785-727-1171


> On Feb 5, 2020, at 5:14 PM, Troy Denton <tden...@24-7intouch.com> wrote:
> 
> Thank you for the prompt reply David.
> 
> I'm having trouble understanding what the 'sync' actually means from the 
> output of 'bucardo add sync' - amongst the dbs listed, is it assumed the 
> first one is the 'source' and all others are targets?  I recall reading that 
> somewhere... perhaps this was also an outdated source.
> 
> In my instance, I want to sync in two directions (host A to B, B to A).  Does 
> that mean I need to add two syncs?
> 
> Thank you for your patience with a Bucardo newbie -
> --------------------------------
> Troy Denton, P. Eng.
> Senior Telecom Analyst
> 24-7 Intouch
> 
> 24-7intouch.com | tden...@24-7intouch.com
> 240 Kennedy St | Winnipeg, Manitoba, Canada R3C 1T1
> 
> Confidentiality Note: This e-mail message and any attachments to it are 
> intended only for the named recipients and may contain legally privileged 
> and/or confidential information. If you are not one of the intended 
> recipients, please do not duplicate or forward this e-mail message and 
> immediately delete it from your computer.
> 
> 
> On Wed, Feb 5, 2020 at 5:00 PM David Christensen <da...@endpoint.com> wrote:
> Hi Troy,
> 
> Yes, that looks like the odds docs; the CLI tool is now named “bucardo”.  If 
> you run “bucardo help add sync” that should give you a basic rundown for the 
> syntax.  (type=swap is a holdover from the Bucardo 4 days).
> 
> HTH,
> 
> David
> --
> David Christensen
> Senior Software and Database Engineer
> End Point Corporation
> da...@endpoint.com
> 785-727-1171
> 
> 
> > On Feb 5, 2020, at 4:21 PM, Troy Denton <tden...@24-7intouch.com> wrote:
> >
> > Hello, I'm running bucardo 5.5.0 and trying to add a sync with type 'swap' 
> > as discussed here: https://bucardo.org/swap/, referenced from 
> > https://bucardo.org/Sync/
> >
> > I run the following command:
> >
> > bucardo add sync my_sync type=swap relgroup=my_herd dbs=wpg3,den2
> >
> > but I get the response:
> > Unknown option 'type'
> >
> > The page linked here references 'bucardo_ctl' but i cannot find that 
> > executable on my installation (installed via debian repo).  I've tried 
> > compiling from source but I don't see a file with that name built either.
> >
> > Am I missing something?  Have I stumbled upon outdated documentation?
> >
> > All the best,
> > --------------------------------
> > Troy Denton, P. Eng.
> > Senior Telecom Analyst
> > 24-7 Intouch
> >
> > 24-7intouch.com | tden...@24-7intouch.com
> > 240 Kennedy St | Winnipeg, Manitoba, Canada R3C 1T1
> >
> > Confidentiality Note: This e-mail message and any attachments to it are 
> > intended only for the named recipients and may contain legally privileged 
> > and/or confidential information. If you are not one of the intended 
> > recipients, please do not duplicate or forward this e-mail message and 
> > immediately delete it from your computer.
> > _______________________________________________
> > Bucardo-general mailing list
> > Bucardo-general@bucardo.org
> > https://bucardo.org/mailman/listinfo/bucardo-general
> 

Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
Bucardo-general mailing list
Bucardo-general@bucardo.org
https://bucardo.org/mailman/listinfo/bucardo-general

Reply via email to