[pybsddb] Snapshotting / replicating bdb

andrew andrew at reurbanise.co.nz
Fri May 22 00:40:11 CEST 2009


Hi All,

I need to be able to create read-only copies of my production databases
for analysis purposes - what would be the best way to do this ? The
production databases are under constant load, and when I try to run a
table scan of one of them (2M objects) it tends to kill the database for
some unknown reason. Hence I want to try doing this analysis against a
separate, readonly version.

I could always just copy the database files, but this seems like a
less-than-elegant approach. I've just been reading about BDB replication
[1], which seems like it could be the way to go, but has anyone else out
there done this before and, if so, would you be prepared to share some
sample code ? That would be very much appreciated.

Cheers, Andrew.

[1]
http://www.oracle.com/technology/documentation/berkeley-db/db/ref/rep/intro.html
 




More information about the pybsddb mailing list