From d2bc38acaa681a53a9aca5ce1de91b6d74c8e0c6 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 18 Mar 2026 18:08:01 +0100 Subject: [PATCH] warn when replaying segments, fixes #9233 If the repo index is not uptodate, any borg operation might trigger replay_segments and thus even operations that are usually quick can take rather long, leaving the user wondering about what's going on. While there is already a progress indicator in replay_segments, it is logged at INFO level and thus not visible if borg runs at the default WARNING level. --- src/borg/repository.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/borg/repository.py b/src/borg/repository.py index 8dbc74e1f..4efbf72b2 100644 --- a/src/borg/repository.py +++ b/src/borg/repository.py @@ -925,6 +925,7 @@ class Repository: remember_exclusive = self.exclusive self.exclusive = None self.prepare_txn(index_transaction_id, do_cleanup=False) + logger.warning('Replaying segments. Please wait, this can take a while...') try: segment_count = sum(1 for _ in self.io.segment_iterator()) pi = ProgressIndicatorPercent(total=segment_count, msg='Replaying segments %3.0f%%',