Converting tool from BerkeleyDB to various databases formats
requires: libdb-devel, gdbm-devel, lmdb-devel, g++, make
- Clone the repo
- Build the binary
make
- For static linking of libdb use
make static
db_converter --src SOURCE --dest DEST [ DBTYPE ]
- SOURCE - path to BerkeleyDB database
- DEST - file path to be created in the new database format
- DBTYPE - optional argument
--lmdb
for producing LMDB database. GDBM is the default one. LMDB needs to have created directory for database files and provide it as parameter DEST
./db_convert --src access.db --dest access.gdbm
mkdir lmdb
./db_convert --src access.db --dest lmdb --lmdb
- Your new file with converted database will be created
The directory units
contains example of the service file. It could be used as template
for database conversion within system upgrade.