about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-05 09:40:17 +0000
committerEric Wong <e@80x24.org>2021-10-05 23:09:45 +0000
commitef68ada3b207fdb511ebe6d33b072a84277e6cd6 (patch)
tree1154347962fccb85bbf0d8fcbb6489f4045448a7 /script
parent88344a50f62a39dcb5673b0aa42ebec7ec44bd71 (diff)
downloadpublic-inbox-ef68ada3b207fdb511ebe6d33b072a84277e6cd6.tar.gz
This lets administrators reindex specific time ranges
according to git "approxidate" formats.  These arguments
are passed directly to underlying git-log(1) invocations
and may still reach into old epochs.

Since these options rely on git committer dates (which we infer
from the most recent Received: header), they are not guaranteed
to be strictly tied to git history and it's possible to
over/under-reindex some messages.  It's probably not a major
problem in practice, though; reindexing a few extra messages
is generally harmless aside from some extra device wear.

Since this currently relies on git-log, these options do not
affect -extindex, yet.
Diffstat (limited to 'script')
-rwxr-xr-xscript/public-inbox-index3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/public-inbox-index b/script/public-inbox-index
index ca190a2e..053d8b94 100755
--- a/script/public-inbox-index
+++ b/script/public-inbox-index
@@ -25,6 +25,8 @@ options:
   --batch-size=BYTES  flush changes to OS after a given number of bytes
   --max-size=BYTES    do not index messages larger than the given size
   --reindex           index previously indexed data (if upgrading)
+  --since=DATE        limit --reindex to changes after DATE
+  --until=DATE        limit --reindex to changes before DATE
   --rethread          regenerate thread IDs (if upgrading, use sparingly)
   --prune             prune git storage on discontiguous history
   --verbose | -v      increase verbosity (may be repeated)
@@ -40,6 +42,7 @@ GetOptions($opt, qw(verbose|v+ reindex rethread compact|c+ jobs|j=i prune
                 fsync|sync! xapian_only|xapian-only
                 indexlevel|index-level|L=s max_size|max-size=s
                 batch_size|batch-size=s
+                since|after=s until|before=s
                 sequential-shard|seq-shard
                 no-update-extindex update-extindex|E=s@
                 fast-noop|F skip-docdata all C=s@ help|h))