=head1 SYNOPSIS
-public-inbox-clone INBOX_URL [INBOX_DIR]
+public-inbox-clone [OPTIONS] INBOX_URL [INBOX_DIR]
-public-inbox-clone ROOT_URL [DESTINATION]
+public-inbox-clone [OPTIONS] ROOT_URL [DESTINATION] # public-inbox 2.0+
=head1 DESCRIPTION
allows cloning multi-epoch v2 inboxes with a single command and
zero configuration.
+In public-inbox 2.0+, public-inbox-clone can also mirror multiple
+inboxes or code repositories using manifest.js.gz files like
+L<grok-pull(1)> from grokmirror.
+
It does not run L<public-inbox-init(1)> nor
L<public-inbox-index(1)>. Those commands must be run separately
if serving/searching the mirror is required. As-is,
public-inbox-clone is suitable for creating a git-only backup.
-public-inbox-clone creates a Makefile with handy targets to update the
-inbox once indexed. This Makefile may be edited by the user; it will
+When cloning a single inbox, public-inbox-clone creates a Makefile
+with handy targets to update the inbox once indexed.
+This Makefile may be edited by the user; it will
not be rewritten by L<public-inbox-fetch(1)> unless it is removed
completely.
public-inbox-clone does not use nor require any extra
configuration files (not even C<~/.public-inbox/config>).
-L<public-inbox-fetch(1)> may be used to keep C<INBOX_DIR>
-up-to-date.
+L<public-inbox-fetch(1)> may be used to keep a single C<INBOX_DIR>
+up-to-date. When using manifest.js.gz, public-inbox-clone is used
+to maintain the multi-repository mirror.
For v2 inboxes, it will create a C<$INBOX_DIR/manifest.js.gz>
file to speed up subsequent L<public-inbox-fetch(1)>.
repositories matching a given wildcard pattern (using C<*?> and C<[]> is
supported).
+This is a new option in public-inbox 2.0+
+
=item --exclude=PATTERN
When cloning a top-level with multiple inboxes, ignore inboxes and
repositories matching the given wildcard pattern. Supports the same
wildcards as L</--include>
+This is a new option in public-inbox 2.0+
+
=item --inbox-config=always|v2|v1|never
Whether or not to retrieve the C<$INBOX/_/text/config/raw> HTTP(S)
Default: C<always>
+This is a new option in public-inbox 2.0+
+
=item --inbox-version=NUM
Force a remote public-inbox version (must be C<1> or C<2>).
This is auto-detected by default, and this option exists mainly
for testing.
+This is a new option in public-inbox 2.0+
+
=item --objstore=DIR
Enables space savings when the remote C<manifest.js.gz>
is specified where C<DIR> is an empty string (C<"">), then C<objstore>
(C<$DESTINATION/objstore>) is the implied value of C<DIR>.
+This is a new option in public-inbox 2.0+
+
=item --manifest=FILE
When incrementally updating an existing mirror, load the given
is specified where C<FILE> is an empty string (C<"">), then C<manifest.js.gz>
(C<$DESTINATION/manifest.js.gz>) is the implied value of C<FILE>.
+This is a new option in public-inbox 2.0+
+
=item --project-list=FILE
When cloning code repos from a manifest, generate a cgit-compatible
is specified where C<FILE> is an empty string (C<"">), then C<projects.list>
(C<$DESTINATION/projects.list>) is the implied value of C<FILE>.
+This is a new option in public-inbox 2.0+
+
=item --post-update-hook=COMMAND
Hooks to run after a repository is cloned or updated, C<COMMAND> will
May be specified multiple times to run multiple commands in the
order specified on the command-line.
+This is a new option in public-inbox 2.0+
+
=item -p
=item --prune
Pass the C<--prune> and C<--prune-tags> flags to L<git-fetch(1)>
calls on incremental clones.
+This is a new option in public-inbox 2.0+
+
=item --exit-code
Exit with C<127> if no updates are done when relying on a manifest.
Updates include fingerprint mismatches in the manifest, new symlinks,
new repositories, and removed repositories from the L<--project-list>
+This is a new option in public-inbox 2.0+
+
=item -k
=item --keep-going
Continue as much as possible after an error.
+This is a new option in public-inbox 2.0+
+
=item -n
=item --dry-run
Show what would be done, without making any changes.
+This is a new option in public-inbox 2.0+
+
=item -q
=item --quiet