Re: [Bucardo-general] Possible bug?

2013-05-16 Thread Greg Sabino Mullane
On Tue, May 14, 2013 at 10:17:40AM +0200, Olaf Rühenbeck wrote:
> I read in the archives of this list that bucardo always requires a primary
> key on every table it tries to sync, this is kinda annoying and I will have
> to write a script to take care of this after every major bacula database
> schema upgrade, but also if I try to set onetimecopy=1 to avoid the
> necessity of the primary key it comes up with the same message. So I added
> a primary key to the table in the source database and I still get the same
> error:

A onetimecopy=1 will not remove the need for a primary key. Also keep in mind 
that a primary key is not strictly needed - just a unique index (which is all 
a primary key really is).

> # bucardo add sync m_baculadir_v herd=maguro dbs=maguro onetimecopy=1
> Failed to add sync: DBD::Pg::st execute failed: ERROR:  Table
> "public.jobhisto" must specify a primary key! at line 117. at line 30.
> CONTEXT:  PL/Perl function "validate_sync" at /usr/bin/bucardo line 4113.

Are you sure the new primary key is on all databases?

As Adam points out, the primary key information is added to the internal 
Bucardo tables when the table is first added. You may be able to do it 
on the fly, but make sure that all the pkey related fields get updated! 
To view things:

bucardo list table foobar -vv

Then to update the pkey field:

bucardo update table foobar pkey=id

-- 
Greg Sabino Mullane g...@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8


signature.asc
Description: Digital signature
___
Bucardo-general mailing list
Bucardo-general@bucardo.org
https://mail.endcrypt.com/mailman/listinfo/bucardo-general


Re: [Bucardo-general] Monitoring Stats / bucardo_rrd

2013-05-16 Thread Joshua Tolley
On Thu, May 16, 2013 at 03:23:53PM +0100, Mike Tonks wrote:
> Any plans to update?  I can probably have a go but might require
> some input...

I haven't seen anyone talking about updating them, but by all means, take a
shot at it. Patches are welcome, as a general rule, even if the people working
on them need advice while getting them ready.

-- 
Josh Tolley   j...@endpoint.com   801-987-0252
End Point Corporation  http://www.endpoint.com


signature.asc
Description: Digital signature
___
Bucardo-general mailing list
Bucardo-general@bucardo.org
https://mail.endcrypt.com/mailman/listinfo/bucardo-general


[Bucardo-general] Monitoring Stats / bucardo_rrd

2013-05-16 Thread Mike Tonks

Hi,

I've just been looking at bucardo_rrd in the /scripts folder and it does 
some nice stuff.  But it seems to be incompatible with 4.99.7.


Is that right?

Any plans to update?  I can probably have a go but might require some 
input...



Regards,

Mike Tonks

___
Bucardo-general mailing list
Bucardo-general@bucardo.org
https://mail.endcrypt.com/mailman/listinfo/bucardo-general