Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
debuglevel opened this issue Dec 31, 2023 · 2 comments
Open
Labels

Comments

@debuglevel
Copy link
Contributor

debuglevel commented Dec 31, 2023

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.

@infectormp
Copy link
Contributor

infectormp commented Dec 31, 2023

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

@ThomasWaldmann
Copy link
Member

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants