mdb_dump (1) - Linux Man Pages
mdb_dump: LMDB environment export tool
mdb_dump - LMDB environment export tool
SYNOPSISmdb_dump [-V] [-f
DESCRIPTIONThe mdb_dump utility reads a database and writes its contents to the standard output using a portable flat-text format understood by the mdb_load(1) utility.
- Write the library version number to the standard output, and exit.
- Write to the specified file instead of to the standard output.
- List the databases stored in the environment. Just the names will be listed, no data will be output.
- Dump an LMDB database which does not use subdirectories.
- If characters in either the key or data items are printing characters (as defined by isprint(3)), output them directly. This option permits users to use standard text editors and tools to modify the contents of databases.
Note: different systems may have different notions about what characters are considered printing characters, and databases dumped in this manner may be less portable to external systems.
- Dump all of the subdatabases in the environment.
- Dump a specific subdatabase. If no database is specified, only the main database is dumped.
DIAGNOSTICSExit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error.
Dumping and reloading databases that use user-defined comparison functions will result in new databases that use the default comparison functions. In this case it is quite likely that the reloaded database will be damaged beyond repair permitting neither record storage nor retrieval.
The only available workaround is to modify the source for the mdb_load(1) utility to load the database using the correct comparison functions.
AUTHORHoward Chu of Symas Corporation <http://www.symas.com>