adjustments to borg2 output? #7271
Replies: 3 comments 7 replies
-
I see that I in fact converted the line
incorrectly, as further evidence that it is confusing. This would translate to
If we want to avoid the issue with plurals (archive vs archives), we could use:
Or maybe we just want to give the essential information, namely the number that need fetching. Then we could combine
into one line:
|
Beta Was this translation helpful? Give feedback.
-
borg prune: I rather want to show both kept/pruned archives by default (== as it is now). When specifying the prune policy via cli args, users tell what they want to keep. So it is a good thing when borg shows that it actually followed the policy, giving details why it kept a specific archives. In the past (before borg 1.2, IIRC), we frequently got bug reports because users suspected borg was not pruning correctly (but it was always due to some misunderstanding / wrong expectations). Showing why some specific archive was kept makes it easier for users to understand that borg is working correctly. So, guess we could implement the shorter output you want via some additional option, like Or you could use grep. :-) |
Beta Was this translation helpful? Give feedback.
-
Yes, guess that should be DEBUG loglevel only. |
Beta Was this translation helpful? Give feedback.
-
Since borg2 is a breaking release, I have some suggestions for minor adjustments to the output.
First, when pruning, I'd like to be able to save in my log files a list of which archives were pruned, without seeing which ones were kept. With the
--list
option, you see both, like this:Maybe we could change it so that the kept archives are only shown if
--debug
is given (or at least, if-v
is given)?When creating an archive, if you are connecting to a repo from a different host than the last one that used it, the chunks cache needs to be synchronized. Currently, without
-v
, there is no output related to this, and with-v
you see something like:I like using
-v
to have more info in the logs, but this seems too verbose to me. How about something like:with the other lines only shown with
--debug
?Also, I've always found the line
confusing. It sounds like there are 3 archives, 1 of which is cached and 3 of which are not, but 1+3 != 3. Moreover, you only need to give three numbers to specify the situation. How about something like:
That's
len(cached_ids & archive_ids)
,len(cached_ids - archive_ids)
, andlen(archive_ids - cached_ids)
. Alternatively, we could have:That's
len(cached_ids)
,len(cached_ids - archive_ids)
, andlen(archive_ids - cached_ids)
.If any of these changes sound good, I'm willing to make pull requests.
Beta Was this translation helpful? Give feedback.
All reactions