Skip to content

backup report: show negative compression#1598

Merged
BareosBot merged 5 commits intobareos:masterfrom
pstorz:dev/pstorz/master/show-negative-compression
Dec 18, 2023
Merged

backup report: show negative compression#1598
BareosBot merged 5 commits intobareos:masterfrom
pstorz:dev/pstorz/master/show-negative-compression

Conversation

@pstorz
Copy link
Member

@pstorz pstorz commented Nov 14, 2023

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
  • Required backport PRs have been created
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@pstorz pstorz requested a review from sebsura November 16, 2023 08:00
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I was bitten by this already so i appreciate this change.

@arogge
Copy link
Member

arogge commented Nov 16, 2023

Can't we fix the underlying problem? i.e. don't write the compressed record if it is bigger than the uncompressed one. And maybe keep a statistic how often this happens and then skip further record compression if the file seems to be incompressible?
(yes, of course this is out of scope for this PR. I'm just having ideas...)

@sebsura
Copy link
Contributor

sebsura commented Nov 16, 2023

That should be doable.

@arogge
Copy link
Member

arogge commented Dec 13, 2023

Builds fails as this still uses the old _() macro, so I added the nobuild flag for now.

@pstorz pstorz removed the nobuild label Dec 17, 2023
@pstorz pstorz force-pushed the dev/pstorz/master/show-negative-compression branch 2 times, most recently from bcf0961 to 181e7f9 Compare December 18, 2023 07:44
pstorz and others added 5 commits December 18, 2023 10:37
We now also display a negative compression rate in the job log, before
it was changed to "None".
This is an important information as it suggests the administrator to
disable compression.
This also fixes the unescaped % inside a format string
@BareosBot BareosBot force-pushed the dev/pstorz/master/show-negative-compression branch from d2639db to 5142059 Compare December 18, 2023 10:37
@BareosBot BareosBot merged commit 59d27e1 into bareos:master Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments