about summary refs log tree commit homepage
path: root/script/public-inbox-xcpdb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-23 09:37:01 +0000
committerEric Wong <e@80x24.org>2019-05-23 17:43:50 +0000
commit0e41e076145c51f21151e29d64bd66cd3534d3ba (patch)
tree8003cdbfe10cd573792e944fb41074e9cc8e6343 /script/public-inbox-xcpdb
parentc7380dad6bb9eab26641c5ec2707431ed573de3c (diff)
downloadpublic-inbox-0e41e076145c51f21151e29d64bd66cd3534d3ba.tar.gz
Allow users to specify the --blocksize <B>, --no-full, --fuller
options for xapian-compact(1) for fine-tuning compact behavior
for low-traffic/inactive inboxes.

We also won't support --multipass, since it doesn't seem
compatible with our requirement to use --no-renumber.

We also won't support --single-file, since it only seems
intended for totally dead inboxes; and it doesn't seem
worth the support overhead when "totally dead" turns out
to be a misdiagnosis.
Diffstat (limited to 'script/public-inbox-xcpdb')
-rwxr-xr-xscript/public-inbox-xcpdb3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/public-inbox-xcpdb b/script/public-inbox-xcpdb
index bda7be0c..badb95e2 100755
--- a/script/public-inbox-xcpdb
+++ b/script/public-inbox-xcpdb
@@ -9,7 +9,8 @@ use PublicInbox::Admin;
 PublicInbox::Admin::require_or_die('-search');
 my $usage = "Usage: public-inbox-xcpdb INBOX_DIR\n";
 my $opt = {};
-GetOptions($opt, qw(compact quiet|q)) or die "bad command-line args\n$usage";
+GetOptions($opt, qw(compact), @PublicInbox::Xapcmd::COMPACT_OPT) or
+        die "bad command-line args\n$usage";
 my @ibxs = PublicInbox::Admin::resolve_inboxes(\@ARGV) or die $usage;
 foreach (@ibxs) {
         my $ibx = PublicInbox::InboxWritable->new($_);