<div dir="ltr"><div>Hello all,</div><div><br></div>I have a fairly simple install and configuration of bucardo with the intention of replicating a postgresql 10 to another postgresql 10 instance (actually aurora in postgresql mode) to get off a particular cloud platform (heroku) and onto AWS RDS (aurora). <div><br></div><div>setup</div><div><br></div><div>1) I dump the source schema (remove every constraint and secondary indexes) and use that to build the new target db's schema</div><div><br></div><div>2) add source db to bucardo</div><div><br></div><div>bucardo add db herokudevdb dbhost=<a href="http://ec2-11-22-33-44.compute-1.amazonaws.com">ec2-11-22-33-44.compute-1.amazonaws.com</a> dbport=5432 dbname=thedbname dbuser=thedbuser dbpass=thedbpasswd</div><div><br></div><div>3) add target db to bucardo</div><div><br></div><div>bucardo add db auroradevdb dbhost=<a href="http://dev-db-url.rds.amazonaws.com">dev-db-url.rds.amazonaws.com</a> dbport=5432 dbname=thedbname dbuser=thedbuser dbpass=thedbpasswd<br></div><div><br></div><div>4) add all tables</div><div><br></div><div>bucardo add all tables db=herokudevdb --herd=herokudevherd --verbose<br></div><div><br></div><div>5) create a dbgroup</div><div><br></div><div>bucardo add dbgroup herokudevmigration herokudevdb:source auroradevdb:target --verbose<br></div><div><br></div><div>6) add a sync</div><div><br></div><div>bucardo add sync herokudevsync relgroup=herokudevherd dbs=herokudevmigration onetimecopy=2 stayalive=1 kidsalive=1 autokick=1 --verbose<br></div><div><br></div><div>7) validate</div><div><br></div><div>bucardo validate sync herokudevsync # Validating sync herokudevsync ... OK<br></div><div><br></div><div>8) start bucardo</div><div><br></div><div>sudo bucardo start<br></div><div><br></div><div>9) check status</div><div><br></div><div>bucardo status herokudevsync<br>======================================================================<br>Last good                : Oct 14, 2020 02:57:43 (time to run: 1s)<br>Rows deleted/inserted    : 3 / 3<br>Sync name                : herokudevsync<br>Current state            : Good<br>Source relgroup/database : herokudevherd / herokudevdb<br>Tables in sync           : 258<br>Status                   : Active<br>Check time               : None<br>Overdue time             : 00:00:00<br>Expired time             : 00:00:00<br>Stayalive/Kidsalive      : Yes / Yes<br>Rebuild index            : No<br>Autokick                 : Yes<br>Onetimecopy              : No<br>Post-copy analyze        : Yes<br>Last error:              :<br>======================================================================<br></div><div><br></div><div>As you can see there a quite a few tables (258) and only some of them (maybe around 20) get copied, usually around 60K rows</div><div><br></div><div>My log file shows no errors.  Wondering if there is something I need to do to force that first run to execute for a longer period to copy all tables?</div><div><br></div><div>Appreciate any help I can get to better understand what I am doing wrong here. Also, assuming I can properly migrate this small dev database (around 10 DB of data total) my ultimate goal is to move the full prod db (around 3 TB) with as little down time as possible.</div><div><br></div><div>Thanks,</div><div>Adam</div><div><br></div><div><br></div></div>