X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=script%2Fpublic-inbox-xcpdb;h=2b9f032c5c01880efa6a8daa7d986bcea792272b;hb=e39585ee2bdcbeaab7b6bd33b3568021042d0879;hp=ef64e58f54675a30091f10befe1e7cd4321bd32a;hpb=69d84811ba0c4c60a5fb6893817328d76444cdf5;p=public-inbox.git diff --git a/script/public-inbox-xcpdb b/script/public-inbox-xcpdb index ef64e58f..2b9f032c 100755 --- a/script/public-inbox-xcpdb +++ b/script/public-inbox-xcpdb @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright (C) 2019 all contributors +# Copyright (C) 2019-2020 all contributors # License: AGPL-3.0+ # xcpdb: Xapian copy database, a wrapper around Xapian's copydatabase(1) use Getopt::Long qw(:config gnu_getopt no_ignore_case auto_abbrev); @@ -9,8 +9,8 @@ use PublicInbox::Admin; PublicInbox::Admin::require_or_die('-search'); my $usage = "Usage: public-inbox-xcpdb [--compact] INBOX_DIR\n"; my $opt = {}; -GetOptions($opt, qw(compact), @PublicInbox::Xapcmd::COMPACT_OPT) or - die "bad command-line args\n$usage"; +my @opt = (qw(compact reshard|R=i), @PublicInbox::Xapcmd::COMPACT_OPT); +GetOptions($opt, @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($_);