]> git.notmuchmail.org Git - notmuch/blob - doc/man1/notmuch-compact.rst
cb1c858b1e4a85af2698d0c8e0b6441e90b4563f
[notmuch] / doc / man1 / notmuch-compact.rst
1 .. _notmuch-compact(1):
2
3 ===============
4 notmuch-compact
5 ===============
6
7 SYNOPSIS
8 ========
9
10 **notmuch** **compact** [--quiet] [--backup=<*directory*>]
11
12 DESCRIPTION
13 ===========
14
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
17 lookup performance.
18
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
22 used.
23
24 Note that the database write lock will be held during the compaction
25 process (which may be quite long) to protect data integrity.
26
27 Supported options for **compact** include
28
29 .. program:: compact
30
31 .. option:: --backup=<directory>
32
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
36    current database.
37
38 .. option:: --quiet
39
40    Do not report database compaction progress to stdout.
41
42 SEE ALSO
43 ========
44
45 :any:`notmuch(1)`,
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)`,
56 :any:`notmuch-tag(1)`