Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
onetime Does Not Work in 4.99.6 #37
Tried to set up a two master configuration where one master already had data and the other didn't. Hit
Probably something simple…
I'm experimenting with onetimecopy in latest git, a couple revs past 4.99.7, and meeting success. Here's what I can explain. I have a supervisor that waits until the target database comes up. Maybe there's a better way? Meanwhile, my app is running, making local writes to local db. Then, when the supervisor sees the remote db available, it starts bucardo and add my syncs like this:
bucardo add sync sg_sync herd=sgherd conflict_strategy=latest onetimecopy=1 dbs=sggroup
It proceeds with copying to the target at a rate of about 2800 rows/sec in my case. While it's doing this the onetimecopy column in the bucardo.sync db stays "1". Finally, when it's finished copying, that column goes to "0" and regular triggered sync begins.
Let me know If I can answer any questions.