1MDB_COPY(1)                 General Commands Manual                MDB_COPY(1)
2
3
4

NAME

6       mdb_copy - LMDB environment copy tool
7

SYNOPSIS

9       mdb_copy [-V] [-c] [-n] srcpath [dstpath]
10

DESCRIPTION

12       The mdb_copy utility copies an LMDB environment. The environment can be
13       copied regardless of whether it is currently in use.   No  lockfile  is
14       created, since it gets recreated at need.
15
16       If  dstpath  is specified it must be the path of an empty directory for
17       storing the backup. Otherwise, the backup will be written to stdout.
18
19

OPTIONS

21       -V     Write the library version number to  the  standard  output,  and
22              exit.
23
24       -c     Compact  while  copying. Only current data pages will be copied;
25              freed or unused pages will be omitted from the copy. This option
26              will  slow  down the backup process as it is more CPU-intensive.
27              Currently it fails if the environment has suffered a page leak.
28
29       -n     Open LDMB environment(s) which do not use subdirectories.
30
31

DIAGNOSTICS

33       Exit status is zero if no errors occur.  Errors result  in  a  non-zero
34       exit status and a diagnostic message being written to standard error.
35

CAVEATS

37       This  utility can trigger significant file size growth if run in paral‐
38       lel with write transactions, because pages which they free during copy‐
39       ing cannot be reused until the copy is done.
40

SEE ALSO

42       mdb_stat(1)
43

AUTHOR

45       Howard Chu of Symas Corporation <http://www.symas.com>
46
47
48
49LMDB 0.9.14                       2014/07/01                       MDB_COPY(1)
Impressum