X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=script%2Fpublic-inbox-clone;h=54059d036f8675cb89636a93e0440c9b84b87c86;hb=4eee5af6011cc8cdefb66c9729952c7eff5c0b0b;hp=2b18969f75c2b6dacbb37abc56b0cd901d75e185;hpb=b45a1dffa647f6427d0c900fcc55753db7a1994c;p=public-inbox.git diff --git a/script/public-inbox-clone b/script/public-inbox-clone index 2b18969f..54059d03 100755 --- a/script/public-inbox-clone +++ b/script/public-inbox-clone @@ -13,6 +13,7 @@ usage: public-inbox-clone INBOX_URL [DESTINATION] options: + --epoch=RANGE range of v2 epochs to clone (e.g `2..5', `~0', `~1..') --torsocks VAL whether or not to wrap git and curl commands with torsocks (default: `auto') Must be one of: `auto', `no' or `yes' @@ -21,7 +22,7 @@ options: -C DIR chdir to specified directory EOF GetOptions($opt, qw(help|h quiet|q verbose|v+ C=s@ c=s@ - no-torsocks torsocks=s)) or die $help; + no-torsocks torsocks=s epoch=s)) or die $help; if ($opt->{help}) { print $help; exit }; require PublicInbox::Admin; # loads Config PublicInbox::Admin::do_chdir(delete $opt->{C}); @@ -54,5 +55,5 @@ my $mrr = bless { dst => $dst, }, 'PublicInbox::LeiMirror'; $mrr->do_mirror; -$mrr->can('do_finish_mirror')->([$mrr, $lei], $$); +$mrr->can('_wq_done_wait')->([$mrr, $lei], $$); exit(($lei->{child_error} // 0) >> 8);