Skip to content

NDMP_BAREOS AutoXFlate support (backport PR #1013)#1090

Merged
pstorz merged 14 commits intobareos:bareos-21from
bruno-at-bareos:dev/bruno/bareos-21/NDMP_BAREOS_autoxflate_support_backport_1013
Mar 1, 2022
Merged

NDMP_BAREOS AutoXFlate support (backport PR #1013)#1090
pstorz merged 14 commits intobareos:bareos-21from
bruno-at-bareos:dev/bruno/bareos-21/NDMP_BAREOS_autoxflate_support_backport_1013

Conversation

@bruno-at-bareos
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos commented Feb 28, 2022

This PR is the backport to 21 of PR #1013
NDMP backups (using NDMP BAREOS) could be configured to use the autoxflate plugin on used storage devices
Unfortunately, the stream was not deflated during restore resulting in non-recoverable Backups.
This PR adds the feature to deflate compressed packages before sending them back to the NDMP data agent

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)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
  • If backport: add original PR number and target branch at top of this file: Backport of PR#000 to bareos-2x

pstorz and others added 14 commits February 28, 2022 11:44
The ndmp systemtest now has autoxflate enabled on the storages.

(cherry picked from commit 3c0430e)
- extract functions
- remove unneeded switch statements
- shorten too long comments

(cherry picked from commit d335185)
(cherry picked from commit 5b22a99)
(cherry picked from commit f54a490)
When doing an NDMP restore the data must be sent to the client inflated.
This patch changes the autoxflate initialization so that an incompatible
configuration, that might send compressed data to the client, will be
overridden with safe defaults.

(cherry picked from commit b8b4a4d)
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
@bruno-at-bareos bruno-at-bareos changed the title Dev/bruno/bareos 21/ndmp bareos autoxflate support (backport PR #1013) NDMP_BAREOS AutoXFlate support (backport PR #1013) Mar 1, 2022
@pstorz pstorz self-requested a review March 1, 2022 12:41
@bruno-at-bareos bruno-at-bareos self-assigned this Mar 1, 2022
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

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

Good work! Thank you very much!

@pstorz pstorz merged commit cfa52ac into bareos:bareos-21 Mar 1, 2022
@bruno-at-bareos bruno-at-bareos deleted the dev/bruno/bareos-21/NDMP_BAREOS_autoxflate_support_backport_1013 branch March 1, 2022 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants