#2901 PR merged: BACKUP=BAREOS: fix bconsole CLI argument format

Labels: enhancement, fixed / solved / done, external tool

hseagle2015 opened issue at 2022-12-28 08:15:

Use appropriate CLI argument format depending on the installed bconsole version.

Relax-and-Recover (ReaR) Pull Request Template

Please fill in the following items before submitting a new pull request:

Pull Request Details:
  • Type: Bug Fix / New Feature / Enhancement / Other?
    Bug Fix

  • Impact: Low / Normal / High / Critical / Urgent
    Normal

  • Reference to related issue (URL):
    #2900

  • How was this pull request tested?
    Manually, on multiple KVM hosts running Bareos 22 and Bareos 21 release.

  • Brief description of the changes in this pull request:
    Bareos 22 introduced breaking change in how the CLI tools (such as bconsole) parse the arguments. This pull request fixes the issue when calling the bconsole -xc command.

Before bconsole configuration export command is called, the script will check the bconsole version and will use the appropriate argument format later on.

If bconsole is called with incorrect argument format, the utility will terminate with 113 exit code, and rear mkrescue will fail as well.

jsmeix commented at 2023-01-02 11:26:

@rear/contributors
when there are no objections
I would like to merge this pull request
tomorrow afternoon.


[Export of Github issue for rear/rear.]