PUBLIC-INBOX-INIT(1) | public-inbox user manual | PUBLIC-INBOX-INIT(1) |
public-inbox-init - create or reinitialize a public-inbox
public-inbox-init [OPTIONS] NAME INBOX_DIR HTTP_URL ADDRESS [ADDRESS..]
Creates an empty public-inbox or reinitializes an existing one. It updates "~/.public-inbox/config" by creating a "[publicinbox "NAME"]" section where "publicinbox.NAME.inboxdir" is "INBOX_DIR", "publicinbox.NAME.url" is "HTTP_URL", and "publicinbox.NAME.address" is "ADDRESS". Multiple addresses may be specified for inboxes with multiple addresses.
The default is 1 for the old public-inbox-v1-format(5), but 2 is strongly recommended for scalability if you have DBD::SQLite.
Default: 1
See public-inbox-config(5) for more information.
Default: "full"
This may be set after-the-fact via "publicinbox.$NAME.newsgroup" in the configuration file. See public-inbox-config(5) for more info.
Available in public-inbox 1.6.0+.
Default: none.
This is mainly intended for users of "--skip-epoch" (documented below) but may be of use to public-inbox-v1-format(5) users.
There is no automatic way to use reserved NNTP article numbers when old mail is found, yet.
Available in public-inbox 1.6.0+.
Default: unset, no NNTP article numbers are skipped
Available since public-inbox 1.2.0.
Default: unset, no epochs are skipped
It can be useful to use a single shard ("-j1") for inboxes on high-latency storage (e.g. rotational HDD) unless the system has enough RAM to cache 5-10x the size of the git repository.
Another approach for HDDs is to use the "publicInbox.indexSequentialShard" in public-inbox-index(1) option and many shards, so each shard may fit into the kernel page cache. Unfortunately, excessive shards slows down read-only query performance.
For fast storage, it is generally not useful to specify higher values than the default due to the top-level producer process being a bottleneck.
Default: the number of online CPUs, up to 4 (3 shard workers, 1 producer)
Warning: this option prevents rollbacks to public-inbox 1.5.0 and earlier.
Available in public-inbox 1.6.0+.
Some of the options documented in public-inbox-config(5) require editing the config file. Old versions lack the "--ng"/"--newsgroup" parameter
See public-inbox-config(5) for all the options which may be applied to a given inbox.
Feedback welcome via plain-text mail to <mailto:meta@public-inbox.org>
The mail archives are hosted at <https://public-inbox.org/meta/> and <http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>
Copyright 2019-2021 all contributors <mailto:meta@public-inbox.org>
License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
git-init(1), git-config(1), public-inbox-v1-format(5), public-inbox-v2-format(5)
1993-10-02 | public-inbox.git |