Skip to content

Converting tool from BerkeleyDB to various databases formats

License

Notifications You must be signed in to change notification settings

fila43/db_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

db_converter

Converting tool from BerkeleyDB to various databases formats

requires: libdb-devel, gdbm-devel, lmdb-devel, g++, make

Build

  • Clone the repo
  • Build the binary make
  • For static linking of libdb use make static

Usage

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

Example

GDBM

./db_convert --src access.db --dest access.gdbm

LMDB

mkdir lmdb

./db_convert --src access.db --dest lmdb --lmdb

  • Your new file with converted database will be created

Example systemd service

The directory units contains example of the service file. It could be used as template for database conversion within system upgrade.

About

Converting tool from BerkeleyDB to various databases formats

Resources

License

Stars

Watchers

Forks

Packages

No packages published