mdbm_import [-23cDfhlTZ] [-i infile] [-s hash-function] [-S storeflag] [-p pgsize] [-d dbsize] [-L lock-mode] [-y pgcnt] [-z spillsize] outfile.mdbm
mdbm_import creates an MDBM from data files in db_dump or cdb_dump format. For more information on these formats, see mdbm_export(1).
-2 | Create v2 format mdbm. | ||||||||||||||||||||||||
-3 | Create v3 format mdbm. | ||||||||||||||||||||||||
-c | Import cdb_dump format (default db_dump format). | ||||||||||||||||||||||||
-d dbsize | Create DB with initial dbsize dbsize. | ||||||||||||||||||||||||
-D | Delete keys with zero-length values. | ||||||||||||||||||||||||
-f | Fast mode (don’t lock db while reading). | ||||||||||||||||||||||||
-h | Show help message. | ||||||||||||||||||||||||
-i infile | Read from infile instead of STDIN. | ||||||||||||||||||||||||
-l | Open DB with large object support. | ||||||||||||||||||||||||
-L lock-mode |
| ||||||||||||||||||||||||
-p pgsize | Create DB with page size pgsize. Suffix k/m/g may be used to override the default of bytes. | ||||||||||||||||||||||||
-s hash-function | |||||||||||||||||||||||||
Create DB using hash function hash-function.
hash-function for MDBM V2 are 0-9 only. | |||||||||||||||||||||||||
-S storeflag | Use storeflag when storing values via mdbm_store. Numeric values for storeflag:
| ||||||||||||||||||||||||
-T | Input has no db_dump header | ||||||||||||||||||||||||
-y size | Create DB, and set the large object spill size to size. | ||||||||||||||||||||||||
-z size | Create DB, and set the large object limit size to size. | ||||||||||||||||||||||||
-Z | Truncate existing DB before importing. |
Returns 0 upon success, non-zero upon failure.
mdbm_import -c -i /tmp/foo.data /tmp/newdb.mdbm
mdbm_check(1), mdbm_compare(1), mdbm_copy(1), mdbm_create(1), mdbm_digest(1), mdbm_dump(1), mdbm_export(1), mdbm_fetch(1), mdbm_import(1), mdbm_purge(1), mdbm_replace(1), mdbm_restore(1), mdbm_save(1), mdbm_stat(1), mdbm_sync(1), mdbm_trunc(1)
mdbm-users <mdbm-users@yahoo-inc.com>