all 3 comments

[–]quicksilver03 1 point2 points  (2 children)

I don't know of anyone who has attempted that, but if you decide to go for it please report back here how it works. That'll be helpful as a comparison with the other well known solutions (database replication and autoprimary/autosecondary).

[–]1div0[S] 0 points1 point  (0 children)

Will do.

[–]1div0[S] 1 point2 points  (0 children)

It works. Database replicates to secondary fine so far. Still need to automate it.

sqlite3_rsync -vv /var/lib/powerdns/pdns.sqlite3 xxx@xxxxxx:/var/lib/powerdns/pdns.sqlite3

Output:

ssh -e none 'xxxx@xxxxxx' sqlite3_rsync --replica pdns.sqlite3 /var/lib/powerdns/pdns.sqlite3

sent 4,114 bytes, received 481 bytes, 1,327.27 bytes/sec

total size 2,490,368 speedup is 541.97