borg icon indicating copy to clipboard operation
borg copied to clipboard

Progress of `Remote: checking segment file /whatever/data/17/17078...`

Open debuglevel opened this issue 1 year ago • 2 comments

Have you checked borgbackup docs, FAQ, and open GitHub issues?

Did not found anything; but I did not check in borg 2.0.

Is this a BUG / ISSUE report or a QUESTION?

Feature request. And really just a minor comfort feature.

System information. For client/server mode post info for both machines.

Your borg version (borg -V).

IIRC remote is borg 1.2.4 (Hetzner StorageBox).

Full borg commandline that lead to the problem (leave away excludes and passwords)

borg check --repair --debug

Describe the problem you're observing.

borg check --repair --debug prints:

[...]
Remote: checking segment file /whatever/data/17/17078...
[...]

and

[...]
Remote: compacting segment 4319 with usage count 3 (maybe freeable: 98.88% [100498350 bytes])
[...]

I therefore know which segment borg is checking or compacting right now, but I do not know how many are still to go. (i.e. should I grab a coffee or should I go to bed? 😀).

borg already prints this once at the beginning, but it is very likely that the terminal scroll buffer is too small to being able to scroll all the way up 😅:

Remote: Segment transaction is    18594
Remote: Determined transaction is 18594
Remote: Found 4314 segments

While analyzing archives, there is such a count:

[...]
Analyzing archive a5a5b138021d-2023-10-31T23:01:07.973430 (2/61)
[...]                                                      ^^^^

This is really just a minor feature request. It might still be nice to know about the progress, so one can estimate whether the operation is taking some more minutes or some more hours :)

Related: borg info (maybe only --json) could also print something like segments_count and max_segment_index -- but that is probably only useful for some very special use cases.

debuglevel avatar Dec 31 '23 13:12 debuglevel

Did you try using the --progress option together with borg check --repair?

https://borgbackup.readthedocs.io/en/stable/faq.html#why-isn-t-there-more-progress-eta-information-displayed

infectormp avatar Dec 31 '23 13:12 infectormp

borg intentionally does not try to predict the future (like telling how long something will take).

if you ever worked with tools doing that, you might know that it's often wrong / unreliable, sometimes very wrong. to avoid that, borg just shows what it definitely knows (== the past, how much it has already done) and, if easy to determine, how much is still to do (like a count, not a time interval).

https://xkcd.com/612/

ThomasWaldmann avatar Jan 01 '24 14:01 ThomasWaldmann