-IABerkeley DB Reference Guide: Dumping and Reloading[P;

Berkeley DB Reference Guide: Dumping and Reloading



7

The db_dump and db_load utilities



BThere are three utilities used for dumping and loading Berkeley DB¦databases: db_dump, db_dump185 and db_load.

‡The db_dump and db_dump185 utilities dump Berkeley DB>databases into a flat-text representation of the data that can^be read by db_load. The only difference between them`is that db_dump reads Berkeley DB version 2 and greateredatabase formats, while db_dump185 reads Berkeley DB version1.85 and 1.86 database formats.

`The db_load utility reads either the output format used@by the dump utilities or, optionally, a flat-text representationEcreated using other tools, and stores it into a Berkeley DB database.

IDumping and reloading Hash databases that use user-defined hash functionsFwill result in new databases that use the default hash function. WhileHusing the default hash function may not be optimal for the new database,#it will continue to work correctly.

EDumping and reloading Btree databases that use user-defined prefix orFcomparison functions will result in new databases that use the defaultDprefix and comparison functions. In this case, it is quite likelyIthat the database will be damaged beyond repair permitting neither recordstorage or retrieval.

FThe only available workaround for either Hash or Btree databases is tohmodify the sources for the db_load utility to load the database8using the correct hash, prefix and comparison functions.

AN˙˙