MDB_COPY(1)
π MDB_COPY π
okay bestie so this is mdb_copy, and it's the LMDB environment copy tool β literally the little legend that clones your whole LMDB env for you π«Ά (also hi, it's the general commands manual, section 1, in case anyone asks π
)
β¨ SYNOPSIS β¨
mdb_copy [-V] [-c] [-n] srcpath [dstpath]
πΈ DESCRIPTION πΈ
The mdb_copy utility copies an LMDB environment. The cute part? The environment can be copied regardless of whether it is currently in use. No lockfile is created, since it gets recreated at need. β¨
If dstpath is specified it must be the path of an empty directory for storing the backup. Otherwise, the backup will be written to stdout. no cap, that's the whole vibe π
π OPTIONS π
-Vβ Write the library version number to the standard output, and exit. just a lil flex, then she's gone π¨-cβ Compact while copying. Only current data pages will be copied; freed or unused pages will be omitted from the copy. This option will slow down the backup process as it is more CPU-intensive. Currently it fails if the environment has suffered a page leak. π so like, it's giving thorough but it's also giving expensive-nβ Open LDMB environment(s) which do not use subdirectories. for the ones living that flat-directory lifestyle π¦
π©Ί 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 get a number that isn't zero, that's your sign to actually read stderr, bestie π
β οΈ CAVEATS β οΈ
This utility can trigger significant file size growth if run in parallel with write transactions, because pages which they free during copying cannot be reused until the copy is done.
like... the disk said "I'm full" and it meant it π run it alongside writes and watch the size balloon fr fr
π SEE ALSO π
π AUTHOR π
Howard Chu of Symas Corporation <http://www.symas.com>
this page was brought to you by LMDB 0.9.14 π dated 2014/07/01 β yeah she's vintage, she's iconic, she ate, periodt π β¨
π¦ where this page comes from
- alpine 3.22: lmdb-doc 0.9.33-r0 Β· OLDAP-2.8
- alpine 3.23: lmdb-doc 0.9.33-r0 Β· OLDAP-2.8
- alpine 3.24: lmdb-doc 0.9.35-r0 Β· OLDAP-2.8
- arch rolling: lmdb 0.9.35-1 Β· custom:OpenLDAP
- centos-stream 10: lmdb 0.9.32-4.el10 Β· OLDAP-2.8
- centos-stream 9: lmdb 0.9.32-1.el9 Β· OLDAP-2.8
- centos-stream 9: lmdb 0.9.32-1.el9 Β· OLDAP-2.8
- debian trixie: lmdb-utils 0.9.31-1+b2 Β· OpenLDAP-2.8
- fedora 43: lmdb 0.9.33-4.fc43 Β· OLDAP-2.8
- fedora 43: lmdb 0.9.33-4.fc43 Β· OLDAP-2.8
- 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
- opensuse-leap 16.0: lmdb 0.9.30-160000.3.2 Β· OLDAP-2.8
- opensuse-leap 16.0: lmdb 0.9.30-160000.3.2 Β· OLDAP-2.8
- opensuse-leap 16.0: lmdb 0.9.30-160000.3.2 Β· OLDAP-2.8
- opensuse-leap 16.0: lmdb 0.9.30-160000.3.2 Β· OLDAP-2.8
- ubuntu noble: lmdb-utils 0.9.31-1build1 Β· OpenLDAP-2.8
- ubuntu questing: lmdb-utils 0.9.31-1build1
- ubuntu resolute: lmdb-utils 0.9.31-1build2 Β· OpenLDAP-2.8
- ubuntu stonking: lmdb-utils 0.9.35-1 Β· OpenLDAP-2.8
- Copyright 2012-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