1 .. _notmuch-compact(1):
10 **notmuch** **compact** [--quiet] [--backup=<*directory*>]
15 The **compact** command can be used to compact the notmuch database.
16 This can both reduce the space required by the database and improve
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
24 Note that the database write lock will be held during the compaction
25 process (which may be quite long) to protect data integrity.
27 Supported options for **compact** include
31 .. option:: --backup=<directory>
33 Save the current database to the given directory before replacing
34 it with the compacted database. The backup directory must not
35 exist and it must reside on the same mounted filesystem as the
40 Do not report database compaction progress to stdout.
46 :any:`notmuch-count(1)`,
47 :any:`notmuch-dump(1)`,
48 :any:`notmuch-hooks(5)`,
49 :any:`notmuch-insert(1)`,
50 :any:`notmuch-new(1)`,
51 :any:`notmuch-reply(1)`,
52 :any:`notmuch-restore(1)`,
53 :any:`notmuch-search(1)`,
54 :any:`notmuch-search-terms(7)`,
55 :any:`notmuch-show(1)`,