]> Sergey Matveev's repositories - public-inbox.git/blob - Documentation/public-inbox-compact.pod
pop3: reduce memory use while generating the mailbox cache
[public-inbox.git] / Documentation / public-inbox-compact.pod
1 =head1 NAME
2
3 public-inbox-compact - compact Xapian DBs in an inbox
4
5 =head1 SYNOPSIS
6
7 public-inbox-compact INBOX_DIR
8
9 public-inbox-compact --all
10
11 =head1 DESCRIPTION
12
13 public-inbox-compact is a wrapper for L<xapian-compact(1)>
14 which locks the inbox and prevents other processes such as
15 L<public-inbox-watch(1)> or L<public-inbox-mda(1)> from
16 writing while it operates.
17
18 It enforces the use of the C<--no-renumber> option of
19 L<xapian-compact(1)> which is required to work with the
20 rest of the public-inbox search code.
21
22 This command is rarely needed for active inboxes.
23
24 Using the C<--compact> option of L<public-inbox-index(1)>
25 is recommended, instead, and only when doing a C<--reindex>.
26
27 =head1 OPTIONS
28
29 =over
30
31 =item --all
32
33 Compact all inboxes configured in ~/.public-inbox/config.
34 This is an alternative to specifying individual inboxes directories
35 on the command-line.
36
37 =item --blocksize
38
39 =item --no-full
40
41 =item --fuller
42
43 These options are passed directly to L<xapian-compact(1)>.
44
45 =back
46
47 =head1 ENVIRONMENT
48
49 =over 8
50
51 =item PI_CONFIG
52
53 The default config file, normally "~/.public-inbox/config".
54 See L<public-inbox-config(5)>
55
56 =item XAPIAN_FLUSH_THRESHOLD
57
58 The number of documents to update before committing changes to
59 disk.  This environment is handled directly by Xapian, refer to
60 Xapian API documentation for more details.
61
62 Default: 10000
63
64 =back
65
66 =head1 CONTACT
67
68 Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org>
69
70 The mail archives are hosted at L<https://public-inbox.org/meta/> and
71 L<http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>
72
73 =head1 COPYRIGHT
74
75 Copyright 2018-2021 all contributors L<mailto:meta@public-inbox.org>
76
77 License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>
78
79 =head1 SEE ALSO
80
81 L<xapian-compact(1)>, L<public-inbox-index(1)>