Bareos 22 bconsole switch parsing breaking change #2900
Labels
enhancement
Adaptions and new features
external tool
The issue depends on other software e.g. third-party backup tools.
fixed / solved / done
Milestone
Relax-and-Recover (ReaR) Issue Template
Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):
ReaR version ("/usr/sbin/rear -V"):
Relax-and-Recover 2.6 / Git
OS version ("cat /etc/os-release" or "lsb_release -a" or "cat /etc/rear/os.conf"):
# lsb release -a
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):
# cat /etc/rear/site.conf
Hardware vendor/product (PC or PowerNV BareMetal or ARM) or VM (KVM guest or PowerVM LPAR):
KVM
System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device):
amd64
Firmware (BIOS or UEFI or Open Firmware) and bootloader (GRUB or ELILO or Petitboot):
GRUB
Storage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe):
local SSD
Storage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,LABEL,SIZE,MOUNTPOINT"):
Bareos 22.0.0 (stable) introduced breaking changes in their CLI tools. Bareos changed the way its binaries parse CLI arguments. Four existing options now require two minus signs (
--
) instead of one (-
) .Since Rear calls
bconsole -xc
, the latest release of bconsole returns the following error (and exits with 113 exit code):It's possible to modify
usr/share/rear/prep/BAREOS/default/500_check_BAREOS_bconsole_results.sh
and replacebconsole -xc
withbconsole --xc
, but this will break compatibility with older (still supported) Bareos releases. It would be more appropriate to use the correct switch depending on the bconsole version.The text was updated successfully, but these errors were encountered: