about summary refs log tree commit homepage
path: root/script/public-inbox-xcpdb
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-08-13 08:04:37 +0000
committerEric Wong <e@yhbt.net>2020-08-14 09:56:15 +0000
commited04e9e16999b4624f884d0ab0b66ba16ae57691 (patch)
tree9028f05e2c8df4cc4f84b39cec10393187e04e7a /script/public-inbox-xcpdb
parentc81d2d38b3fb8adcee890dbae59c0e03e129217f (diff)
downloadpublic-inbox-ed04e9e16999b4624f884d0ab0b66ba16ae57691.tar.gz
For -index, this is a convenient way to quickly index all
inboxes after a grok-pull.  Might as well support it for
rarely used commands like -compact and -xcpdb, too.
Diffstat (limited to 'script/public-inbox-xcpdb')
-rwxr-xr-xscript/public-inbox-xcpdb5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/public-inbox-xcpdb b/script/public-inbox-xcpdb
index 718a34b7..2bfadc09 100755
--- a/script/public-inbox-xcpdb
+++ b/script/public-inbox-xcpdb
@@ -13,6 +13,7 @@ usage: $usage
 options:
 
   --compact | -c      run public-inbox-compact(1) after indexing
+  --all               copy all configured inboxes
   --reshard=NUM       change number the number of shards
   --jobs=NUM          limit parallelism to JOBS count
   --verbose | -v      increase verbosity (may be repeated)
@@ -34,7 +35,7 @@ GetOptions($opt, qw(
         sequential_shard|seq-shard|sequential-shard
         jobs|j=i quiet|q verbose|v
         blocksize|b=s no-full|n fuller|F
-        help|?)) or die "bad command-line args\n$usage";
+        all help|?)) or die "bad command-line args\n$usage";
 if ($opt->{help}) { print $help; exit 0 };
 
 use PublicInbox::Admin;
@@ -42,7 +43,7 @@ PublicInbox::Admin::require_or_die('-search');
 
 require PublicInbox::Config;
 my $cfg = PublicInbox::Config->new;
-my @ibxs = PublicInbox::Admin::resolve_inboxes(\@ARGV, undef, $cfg) or
+my @ibxs = PublicInbox::Admin::resolve_inboxes(\@ARGV, $opt, $cfg) or
         die $usage;
 my $idx_env = PublicInbox::Admin::index_prepare($opt, $cfg);