MDB_DUMP(1)
π MDB_DUMP(1) π
okay bestie, welcome to the General Commands Manual page for mdb_dump β yes that's the page title, and yes you're in the right place. grab a strawberry π, this one's actually useful.
β¨ NAME β¨
mdb_dump β the LMDB environment export tool. it's giving "get all that data OUT of the env and into a text file" energy π
π¦ SYNOPSIS π¦
mdb_dump [-V] [-f file] [-l] [-n] [-p] [-a | -s subdb] envpath
like. that's the whole vibe. envpath goes at the end, no cap.
πΈ DESCRIPTION πΈ
so mdb_dump reads a database and writes its contents to the standard output, using a portable flat-text format that mdb_load(1) understands. it's the classic dump-and-reload glow-up pipeline π₯
π OPTIONS π
-Vβ writes the library version number to the standard output and then exits. that's it, that's the whole job, she's done π-ffile β write to the specified file instead of the standard output. bye stdout, hello file bestie πΎ-lβ list the databases stored in the environment. just the names get listed β no data will be output. window shopping only, no buying π-nβ dump an LMDB database that does not use subdirectories.-pβ if characters in either the key or data items are printing characters (as defined byisprint(3)), output them directly. this option lets users use standard text editors and tools to modify the contents of databases. so chic, so convenient β¨
β οΈ note: different systems may have different notions about what characters count as printing characters, and databases dumped this way may be less portable to external systems. so like, it slays locally, but she might not travel well π
-aβ dump all of the subdatabases in the environment.-ssubdb β dump a specific subdatabase. if no database is specified, only the main database is dumped.
also, remember-aand-s subdbare mutually exclusive up there in the synopsis β pick a lane bestie π«Ά
π DIAGNOSTICS π
exit status is zero if no errors occur. errors result in a non-zero exit status and a diagnostic message being written to standard error. so if you see a non-zero, something went sideways, no cap.
π¨ major warning, bestie, read this one twice: dumping databases that use user-defined comparison functions will output records with the ordering imposed by those comparison functions. ifmdb_loadis invoked without including the-aoption when reloading those records, the new databases will likely be damaged beyond repair β permitting neither record storage nor retrieval. like, genuinely gone. not a vibe. do not do this. ππ
π SEE ALSO π
mdb_load(1)β the other half of the duo, the one that puts it all back π«Ά
π AUTHOR π
Howard Chu of Symas Corporation <http://www.symas.com> β king behavior, honestly π
and that's the whole page, bestie!! this was LMDB 0.9.17, dated 2015/09/30, and it lives under MDB_DUMP(1) in the General Commands Manual. go dump responsibly πβ¨
π¦ where this page comes from
- alpine 3.24: lmdb-doc 0.9.35-r0 Β· OLDAP-2.8
- arch rolling: lmdb 0.9.35-1 Β· custom:OpenLDAP
- fedora 43: lmdb 0.9.34-1.fc43 Β· OLDAP-2.8
- fedora 43: lmdb 0.9.34-1.fc43 Β· OLDAP-2.8
- fedora 44: lmdb 0.9.34-2.fc44 Β· OLDAP-2.8
- fedora 44: lmdb 0.9.34-2.fc44 Β· OLDAP-2.8
- nixos 26.05: lmdb 0.9.35
- ubuntu stonking: lmdb-utils 0.9.35-1 Β· OpenLDAP-2.8
- Copyright 2014-2021 Howard Chu, Symas Corp. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms