1 <h1>NOTMUCH-COMPACT(1)</h1>
5 notmuch-compact - compact the notmuch database
10 <b>notmuch</b> <b>compact</b> [--quiet] [--backup=<<u>directory</u>>]
15 The <b>compact</b> command can be used to compact the notmuch database. This
16 can both reduce the space required by the database and improve lookup
19 The compacted database is built in a temporary directory and is later
20 moved into the place of the origin database. The original uncompacted
21 database is discarded, unless the --backup=<directory> option is used.
23 Note that the database write lock will be held during the compaction
24 process (which may be quite long) to protect data integrity.
26 Supported options for <b>compact</b> include
28 <b>--backup=</b><<b>&</b>lt;<b>directory</b>><b>&</b>gt;
30 Save the current database to the given directory before
31 replacing it with the compacted database. The backup direc-
32 tory must not exist and it must reside on the same mounted
33 filesystem as the current database.
37 Do not report database compaction progress to stdout.
42 The following environment variables can be used to control the behavior
45 <b>NOTMUCH</b>_<b>CONFIG</b>
47 Specifies the location of the notmuch configuration file. Not-
48 much will use ${HOME}/.notmuch-config if this variable is not
54 <a href='../notmuch-1/'>notmuch</a>(1), <a href='../notmuch-count-1/'>notmuch-count</a>(1), <a href='../notmuch-dump-1/'>notmuch-dump</a>(1), <a href='../notmuch-hooks-5/'>notmuch-hooks</a>(5), <a href='../notmuch-insert-1/'>not-</a>
55 <a href='../notmuch-insert-1/'>much-insert</a>(1), <a href='../notmuch-new-1/'>notmuch-new</a>(1), <a href='../notmuch-reply-1/'>notmuch-reply</a>(1), <a href='../notmuch-restore-1/'>notmuch-restore</a>(1),
56 <a href='../notmuch-search-1/'>notmuch-search</a>(1), <a href='../notmuch-search-terms-7/'>notmuch-search-terms</a>(7), <a href='../notmuch-show-1/'>notmuch-show</a>(1), <a href='../notmuch-tag-1/'>not-</a>
57 <a href='../notmuch-tag-1/'>much-tag</a>(1)
62 Carl Worth and many others
67 2014, Carl Worth and many others