1NOTMUCH-COMPACT(1) notmuch NOTMUCH-COMPACT(1)
2
3
4
6 notmuch-compact - compact the notmuch database
7
9 notmuch compact [--quiet] [--backup=<directory>]
10
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
35 The following environment variables can be used to control the behavior
36 of notmuch.
37
38 NOTMUCH_CONFIG
39 Specifies the location of the notmuch configuration file. Not‐
40 much will use ${HOME}/.notmuch-config if this variable is not
41 set.
42
44 notmuch(1), notmuch-count(1), notmuch-dump(1), notmuch-hooks(5), not‐
45 much-insert(1), notmuch-new(1), notmuch-reply(1), notmuch-restore(1),
46 notmuch-search(1), notmuch-search-terms(7), notmuch-show(1), not‐
47 much-tag(1)
48
50 Carl Worth and many others
51
53 2009-2020, Carl Worth and many others
54
55
56
57
580.31.3 Dec 25, 2020 NOTMUCH-COMPACT(1)