1NOTMUCH-COMPACT(1)                  notmuch                 NOTMUCH-COMPACT(1)
2
3
4

NAME

6       notmuch-compact - compact the notmuch database
7

SYNOPSIS

9       notmuch compact [--quiet] [--backup=<directory>]
10

DESCRIPTION

12       The  compact command can be used to compact the notmuch database.  This
13       can both reduce the space required by the database and  improve  lookup
14       performance.
15
16       The  compacted  database is built in a temporary directory and is later
17       moved into the place of the origin database. The  original  uncompacted
18       database is discarded, unless the --backup=<directory> option is used.
19
20       Note  that  the  database write lock will be held during the compaction
21       process (which may be quite long) to protect data integrity.
22
23       Supported options for compact include
24
25       --backup=<directory>
26              Save the current database to the given directory before  replac‐
27              ing  it  with  the compacted database. The backup directory must
28              not exist and it must reside on the same mounted  filesystem  as
29              the current database.
30
31       --quiet
32              Do not report database compaction progress to stdout.
33

SEE ALSO

35       notmuch(1),  notmuch-count(1),  notmuch-dump(1), notmuch-hooks(5), not‐
36       much-insert(1), notmuch-new(1),  notmuch-reply(1),  notmuch-restore(1),
37       notmuch-search(1),   notmuch-search-terms(7),   notmuch-show(1),   not‐
38       much-tag(1)
39

AUTHOR

41       Carl Worth and many others
42
44       2009-2021, Carl Worth and many others
45
46
47
48
490.34.1                           Nov 03, 2021               NOTMUCH-COMPACT(1)
Impressum