From 5739602a110a24bdfe2fa56b4cf09d6634b44b33 Mon Sep 17 00:00:00 2001 From: Birkhoff Lee Date: Mon, 16 Dec 2019 06:05:40 +0800 Subject: [PATCH] Elaborate on "Calculating size" (#4866) create: tell that "Calculating size" time and space needs are caused by --progress It took me several days to figure out that `--progress` was the culprit to Borg being SIGKILL'd by the kernel, because of OOM, and because of I enabled progress option. This elaborates on what's the calculation for. --- src/borg/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 6d16b9d77..a7a724073 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -778,7 +778,7 @@ def peek_and_store_hardlink_masters(item, matched): filter = self.build_filter(matcher, peek_and_store_hardlink_masters, strip_components) if progress: pi = ProgressIndicatorPercent(msg='%5.1f%% Extracting: %s', step=0.1, msgid='extract') - pi.output('Calculating size') + pi.output('Calculating total archive size for the progress indicator (might take long for large archives)') extracted_size = sum(item.get_size(hardlink_masters) for item in archive.iter_items(filter)) pi.total = extracted_size else: