public-inbox-compact(1)

public-inbox-compact1

Compact xapian dbs in an inbox

Usage

public-inbox-compact INBOX_DIR

public-inbox-compact --all

Overview

public-inbox-compact is a wrapper for xapian-compact(1) which locks the inbox and prevents other processes such as public-inbox-watch(1) or public-inbox-mda(1) from writing while it operates.

It enforces the use of the "--no-renumber" option of xapian-compact(1) which is required to work with the rest of the public-inbox search code.

This command is rarely needed for active inboxes.

Using the "--compact" option of public-inbox-index(1) is recommended, instead, and only when doing a "--reindex".

Options

--all

Compact all inboxes configured in ~/.public-inbox/config. This is an alternative to specifying individual inboxes directories on the command-line.

--blocksize
--no-full
--fuller

These options are passed directly to xapian-compact(1).

Environment

PI_CONFIG

The default config file, normally "~/.public-inbox/config". See public-inbox-config(5)

XAPIAN_FLUSH_THRESHOLD

The number of documents to update before committing changes to disk. This environment is handled directly by Xapian, refer to Xapian API documentation for more details.

Default: 10000

Contact

Feedback welcome via plain-text mail to <mailto:[email protected]>

The mail archives are hosted at <https://public-inbox.org/meta/> and <http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From public-inbox 1.9.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.