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 notmuch, notmuch-count, notmuch-dump, notmuch-hooks, notmuch-insert,
36 notmuch-new, notmuch-reply, notmuch-restore, notmuch-search,
37 notmuch-search-terms, notmuch-show, notmuch-tag
38
40 Carl Worth and many others
41
43 2009-2023, Carl Worth and many others
44
45
46
47
480.38 Sep 12, 2023 NOTMUCH-COMPACT(1)