=head1 NAME public-inbox-fetch - "git fetch" wrapper for v2 inbox mirrors =head1 SYNOPSIS public-inbox-fetch [--exit-code] -C INBOX_DIR =head1 DESCRIPTION public-inbox-fetch updates git storage of public-inbox mirrors. With v2 inboxes, it allows detection of new epochs and avoids unnecessary traffic on old epochs. public-inbox-fetch does not use nor require any configuration files of its own. It does not run L, making it suitable for maintaining git-only backups. For v2 inboxes, it will maintain C<$INBOX_DIR/manifest.js.gz> file to speed up future invocations. =head1 OPTIONS =over =item -q =item --quiet Quiets down progress messages, also passed to L. =item --exit-code Exit with C<127> if no updates are done. This can be used in shell scripts to avoid invoking L when there are no updates: public-inbox-fetch -q --exit-code && public-inbox-index test $? -eq 0 || exit $? =item -v =item --verbose Increases verbosity, also passed to L. =item --torsocks=auto|no|yes =item --no-torsocks Whether to wrap L and L commands with torsocks. Default: C =back =head1 EXIT CODES =over =item 127 no updates when L is used above =back public-inbox-fetch will also exit with curl L as documented in the L manpage (e.g. C<7> when curl cannot reach a host). Likewise, L failures are also propagated to the user. =head1 CONTACT Feedback welcome via plain-text mail to L The mail archives are hosted at L and L =head1 COPYRIGHT Copyright all contributors L License: AGPL-3.0+ L =head1 SEE ALSO L, L