From 876e74283ff36462607626dec2105e28f2db9bb7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 17 Sep 2021 11:00:23 +0000 Subject: fetch: ignore non-writable epoch dirs This will eventually be useful for maintaing partial mirrors. Keeping inline with the original public-inbox-fetch philosophy, there are no additional config files to manage: the user merely needs to remove write permissions to an $N.git directory to prevent it from being updated. Re-enabling updates just requires restoring write permission. --- Documentation/public-inbox-fetch.pod | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Documentation/public-inbox-fetch.pod') diff --git a/Documentation/public-inbox-fetch.pod b/Documentation/public-inbox-fetch.pod index 28d5638d..833df862 100644 --- a/Documentation/public-inbox-fetch.pod +++ b/Documentation/public-inbox-fetch.pod @@ -19,7 +19,19 @@ It does not run L, making it suitable for maintaining git-only backups. For v2 inboxes, it will maintain C<$INBOX_DIR/manifest.js.gz> -file to speed up future invocations. +file to speed up future invocations. It always safe to remove +manifest.js.gz, it is merely an optimization and will be +restored on the next invocation. + +To prevent fetches on any v2 epoch, use L to remove +write permissions to the top-level of the epoch. For example, +to disable fetches on epoch 4: + + chmod a-w $INBOX_DIR/git/4.git + +If you wish to re-enable fetches to the epoch: + + chmod u+w $INBOX_DIR/git/4.git =head1 OPTIONS -- cgit v1.2.3-24-ge0c7