Changesets: bareos

master eb042a09

2023-11-24 10:52

Bareos Bot


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0001602

Remove unnecessary loader/module split in Python modules for the FD
mod - CHANGELOG.md Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon-ldap-python-plugin Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon-python-plugins-common Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/ldap/BareosFdPluginLDAP.py Diff File
mod - core/src/plugins/filed/python/ldap/bareos-fd-ldap.py Diff File
rm - core/src/plugins/filed/python/mariabackup/BareosFdPluginMariabackup.py Diff File
mod - core/src/plugins/filed/python/mariabackup/bareos-fd-mariabackup.py Diff File
rm - core/src/plugins/filed/python/percona-xtrabackup/BareosFdPluginPerconaXtraBackup.py Diff File
mod - core/src/plugins/filed/python/percona-xtrabackup/bareos-fd-percona-xtrabackup.py Diff File
rm - core/src/plugins/filed/python/postgres/BareosFdPluginPostgres.py Diff File
mod - core/src/plugins/filed/python/postgres/bareos-fd-postgres.py Diff File
mod - core/src/plugins/filed/python/postgresql/bareos-fd-postgresql.py Diff File
rm - core/src/plugins/filed/python/pyfiles/BareosFdPluginLocalFileset.py Diff File
mod - core/src/plugins/filed/python/pyfiles/BareosFdWrapper.py Diff File
mod - core/src/plugins/filed/python/pyfiles/bareos-fd-local-fileset.py Diff File
rm - core/src/plugins/filed/python/vmware/BareosFdPluginVMware.py Diff File
mod - core/src/plugins/filed/python/vmware/bareos-fd-vmware.py Diff File
mod - core/src/vmware/vmware_plugin/CMakeLists.txt Diff File
mod - debian/bareos-filedaemon-ldap-python-plugin.install.in Diff File
mod - debian/bareos-filedaemon-mariabackup-python-plugin.install.in Diff File
mod - debian/bareos-filedaemon-percona-xtrabackup-python-plugin.install.in Diff File
mod - debian/bareos-filedaemon-postgresql-python-plugin.install.in Diff File
mod - debian/bareos-filedaemon-python-plugins-common.install.in Diff File
mod - debian/bareos-vmware-plugin.install Diff File
mod - systemtests/tests/py3plug-fd-postgres/testrunner-default Diff File
mod - systemtests/tests/py3plug-fd-postgres/testrunner-roles Diff File
mod - systemtests/tests/py3plug-fd-postgresql/testrunner-roles Diff File
mod - systemtests/tests/python-bareos/etc/bareos/bareos-dir.d/fileset/PluginOptionsTest.conf.in Diff File
rm - systemtests/tests/python-bareos/python-modules/bareos_fd_pluginoptions/__init__.py Diff File

master df6847b5

2023-11-24 10:52

Bareos Bot

Ported: N/A

Details Diff
Update CHANGELOG.md
mod - CHANGELOG.md Diff File

master 91d07546

2023-11-23 20:50

arogge

Ported: N/A

Details Diff
systemtests: add test for new python config files
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/PluginConfigTestBothFiles.conf.in Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/PluginConfigTestDefaultsFile.conf.in Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/PluginConfigTestNoFile.conf.in Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/PluginConfigTestOverridesFile.conf.in Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-fd.d/plugin_defaults.ini Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-fd.d/plugin_overrides.ini Diff File
add - systemtests/tests/py3plug-fd-basic/python-modules/config-test-module.py Diff File
add - systemtests/tests/py3plug-fd-basic/testrunner-config Diff File

master de1dd5b2

2023-11-23 20:43

arogge

Ported: N/A

Details Diff
python-fd: provide config-file handling

this patch extends BareosFdPluginBaseclass to provide a standard way to
work with plugin configuration files.

When the plugin options parser encounters one of the options
defaults_file or overrides_file, it will treat the values as a path to
an ini-style configuration file and will try to read it. The resulting
options are added with precedence overrides_file, plugin definition,
defaults_file.
The code will consume the defaults_file and overrides_file options, so
the plugin will not see them later.
mod - core/src/plugins/filed/python/pyfiles/BareosFdPluginBaseclass.py Diff File

master 399b037a

2023-11-23 20:41

arogge

Ported: N/A

Details Diff
python-fd: allow getting configuration file path

This patch adds bVarUsedConfig that provides the path to the
configuration that the fd uses. This will contain something like
`/etc/bareos/bareos-fd.d/*/*.conf`.
mod - core/src/filed/fd_plugins.cc Diff File
mod - core/src/filed/fd_plugins.h Diff File
mod - core/src/plugins/filed/python/module/bareosfd.cc Diff File
mod - core/src/plugins/filed/python/module/bareosfd.h Diff File
mod - core/src/tests/CMakeLists.txt Diff File
mod - core/src/tests/test_fd_plugins.cc Diff File

master 4d2196b3

2023-11-23 17:09

SamuelBoerlin


Committer: Bareos Bot

Ported: N/A

Details Diff
restore: make fileregex more like file parameter
mod - core/src/dird/ua_restore.cc Diff File
mod - systemtests/tests/restore/testrunner-restore-fileregex Diff File

master e252cc70

2023-11-23 13:23

arogge

Ported: N/A

Details Diff
python-fd: merge postgres plugin into one file
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/postgres/BareosFdPluginPostgres.py Diff File
mod - core/src/plugins/filed/python/postgres/bareos-fd-postgres.py Diff File
mod - debian/bareos-filedaemon-postgresql-python-plugin.install.in Diff File

master 24598afc

2023-11-23 12:25

arogge

Ported: N/A

Details Diff
python-fd: merge vmware plugin into one file
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/vmware/BareosFdPluginVMware.py Diff File
mod - core/src/plugins/filed/python/vmware/bareos-fd-vmware.py Diff File
mod - core/src/vmware/vmware_plugin/CMakeLists.txt Diff File
mod - debian/bareos-vmware-plugin.install Diff File

master a597c884

2023-11-23 09:48

arogge

Ported: N/A

Details Diff
systemtests: fix problem in postgres tests
mod - systemtests/tests/py3plug-fd-postgres/testrunner-default Diff File
mod - systemtests/tests/py3plug-fd-postgres/testrunner-roles Diff File

master ad220929

2023-11-22 18:23

arogge

Ported: N/A

Details Diff
systemtests: don't depend on LocalFileset plugin
mod - systemtests/tests/python-bareos/etc/bareos/bareos-dir.d/fileset/PluginOptionsTest.conf.in Diff File
rm - systemtests/tests/python-bareos/python-modules/bareos_fd_pluginoptions/__init__.py Diff File

master f560fe6b

2023-11-22 17:06

arogge

Ported: N/A

Details Diff
python-fd: merge xtrabackup plugin into one file
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/percona-xtrabackup/BareosFdPluginPerconaXtraBackup.py Diff File
mod - core/src/plugins/filed/python/percona-xtrabackup/bareos-fd-percona-xtrabackup.py Diff File
mod - debian/bareos-filedaemon-percona-xtrabackup-python-plugin.install.in Diff File

master d15edfa8

2023-11-22 16:45

arogge

Ported: N/A

Details Diff
python-fd: merge local-fileset into one file
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon-python-plugins-common Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/pyfiles/BareosFdPluginLocalFileset.py Diff File
mod - core/src/plugins/filed/python/pyfiles/bareos-fd-local-fileset.py Diff File
mod - debian/bareos-filedaemon-python-plugins-common.install.in Diff File

master 4922b502

2023-11-22 16:42

arogge

Ported: N/A

Details Diff
python-fd: merge mariabackup plugin files
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/mariabackup/BareosFdPluginMariabackup.py Diff File
mod - core/src/plugins/filed/python/mariabackup/bareos-fd-mariabackup.py Diff File
mod - debian/bareos-filedaemon-mariabackup-python-plugin.install.in Diff File

master 775d0885

2023-11-22 16:37

arogge

Ported: N/A

Details Diff
python-fd: merge ldap plugin into a single file
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon-ldap-python-plugin Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/ldap/BareosFdPluginLDAP.py Diff File
mod - core/src/plugins/filed/python/ldap/bareos-fd-ldap.py Diff File
mod - debian/bareos-filedaemon-ldap-python-plugin.install.in Diff File

master f5f5eec0

2023-11-22 16:34

arogge

Ported: N/A

Details Diff
python-fd: make failed plugin-load fatal

Just returning bRC_Error from load_bareos_plugin() is apparently not
enough to make Bareos fail the backup. Thus we emit an M_FATAL instead
of an M_ERROR to fast-fail the job.
This also fixes a subtle bug in the class decorator: as we weren't
returning the class, the class itself was not available under its name
which could lead to strange effects.
mod - core/src/plugins/filed/python/pyfiles/BareosFdWrapper.py Diff File

master 9c58c8c7

2023-11-22 15:04

arogge

Ported: N/A

Details Diff
postgresql plugin: improve compatibility

This patch makes the plugin compatible to PostgreSQL 10 again.
mod - core/src/plugins/filed/python/postgresql/bareos-fd-postgresql.py Diff File
mod - systemtests/tests/py3plug-fd-postgresql/testrunner-roles Diff File

master 2c9735d7

2023-11-22 11:31

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
python-fd: prepare for 3.12
mod - core/src/plugins/filed/python/python-fd.cc Diff File

master 440e3da0

2023-11-22 10:37

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
python-fd: fix multi plugin setups
mod - core/src/plugins/filed/python/plugin_private_context.h Diff File
mod - core/src/plugins/filed/python/python-fd.cc Diff File

master 909e5fa9

2023-11-22 08:58

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
reload: fix race condition

The base config path may change on a reload!
mod - core/src/dird/reload.cc Diff File

master 5ce7f477

2023-11-22 08:44

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
reload: fix race condition

is_reloading can written to/ read from multiple different threads at
the same time. As such we cannot just do a test-then-set
approach (even if each of those operations were atomic). Instead we
need to atomically test _and_ set the flag to actually prevent two
different threads from entering.
mod - core/src/dird/reload.cc Diff File

master 18d9ce09

2023-11-22 08:43

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
jcr: fix compiler warnings

std::find_if is sometimes declared as [[nodiscard]]. As such we
should not ignore its return value.

This commit also slightly refactors the code to remove the use of
std::find_if alltogether.
mod - core/src/include/jcr.h Diff File
mod - core/src/lib/jcr.cc Diff File

master 73a3ec43

2023-11-21 19:55

joergs


Committer: arogge

Ported: N/A

Details Diff
macos: add missing library

required for macOS >= 14.

Fixes 0001565: bareos-fd crash on macOS 14.1 Sonoma
Affected Issues
0001565
mod - core/CMakeLists.txt Diff File

master 6b7237cb

2023-11-21 19:47

joergs


Committer: arogge

Ported: N/A

Details Diff
cmake: set ENABLE_NLS=1 only if not defined
mod - cmake/BareosSetVariableDefaults.cmake Diff File

master 8722ba13

2023-11-21 13:11

joergs


Committer: arogge

Ported: N/A

Details Diff
macos: use homebrew path
mod - core/CMakeLists.txt Diff File
mod - core/cmake/BareosFindAllLibraries.cmake Diff File
mod - core/cmake/FindReadline.cmake Diff File
mod - core/src/plugins/CMakeLists.txt Diff File

master e9bf7643

2023-11-21 09:19

bruno-at-bareos

Ported: N/A

Details Diff
plugin: fd mariabackup add support for mariadb 11+

- cmake introduce consistent cmake variable MARIADB_BACKUP_BINARY
instead of MARIABACKUP_BINARY
- cmake replace all call of mysql cmd to their mariadb equivalent
Mariadb >11 start echoing deprecated warning.
+ mysql -> mariadb
+ mysqld -> mariadbd
+ mariabackup -> mariadb-backup
- split testrunner to setup,cleanup,default
- fileset replace hardcoded mysql by @MARIADB_CLIENT_BINARY@
- add function check_plugin_mariadb_version()
this is needed to pick the right stream filename depending of
the version. (xbstream or mbstream)
- refactor start_backup_job() function
- add function get_lsn_by_command()
- add function parse_innodb_status(res) which can be used by cmd
and mysqlclient
- re-add self.restorecommand init in parse_plugin_definition
so restore directory is new for each file
- reword xbstream to mbstream expect for the protocol name
- improve logging placement statements
- use black for formating
- fix my.cnf usage

mariadb package hard require python3-mysqlclient module on SUSE.
The code using this module is then used during testing; to be
able to connect to the right instance we need to provide a default
config file.

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
mod - core/cmake/BareosFindPrograms.cmake Diff File
mod - core/src/plugins/filed/python/mariabackup/bareos-fd-mariabackup.py Diff File
mod - systemtests/environment.in Diff File
mod - systemtests/tests/py3plug-fd-mariabackup/CMakeLists.txt Diff File
mod - systemtests/tests/py3plug-fd-mariabackup/etc/bareos/bareos-dir.d/fileset/MariabackupTest.conf.in Diff File
rm - systemtests/tests/py3plug-fd-mariabackup/testrunner Diff File
add - systemtests/tests/py3plug-fd-mariabackup/testrunner-default Diff File
 First  Prev  1 2 3 ... 70 71 72 73 74 75 76 ... 140 ... 210 ... 280 ... 350 ... 420 ... 490 ... 560 ... 630 ... 661 662 663  Next  Last