bareos: master 897920a0

Author Committer Branch Timestamp Parent
bruno-at-bareos joergs master 2022-05-17 22:33 master 485ef0eb Pending
Changeset core/scripts: make_catalog_backup replace make_catalog_backup.pl.

- core/scripts: sanitize and cleanup code, improve bareos-config-lib.sh.
- systemtests/tests: remove unused job/BackupCatalog.conf.in files.
- packaging: debian review and improve database-common dbconfig scripts.
- breaking changes: make_bareos_catalog script signature has changed
  + usage is now make_catalog_backup <catalog-name>
  + if more than one args is passed a warning is emit.
  + removed multi database driver to use only PostreSQL.
  + removed bareos-dbcheck dependency.
  + use of bareos-config-lib get_database_ functions
    to setup the command line with PG env vars.
    script can then be run without a .pgpass.
- create systemtests/tests/bareos/testrunner-test-make-catalog-backup
  to test the default BackupCatalog job.
  + backup the catalog.
  + store versionid.
  + restore the backup.
  + drop all tables.
  + restore the catalog with the restored dump script.
  + check number of tables and versionid.
  + restart Bareos ... and compare output.
    by this, we make sure, that Bareos is able to start again
    and also leave this test in the same state as the other tests
    (running Bareos daemons).
- bareos-config-lib.sh remove obsolete or non used functions.
  + get_database_driver
  + initialize_database_driver
  + get_database_utility_path
  + get_databases_installed
  + fix unbounded vars in bareos-config-lib.sh.
- remove support of multiple database items.
- add new function handle_database_scripts_command_line_parameter
- add Bareos License to bareos-config.
- remove usage of external parameters (like psql calls ($*)).
- add check to failed if $1 is not postgresql, warn user about deprecated usage.
- suppress dbcheck dependency.
- get_database_param is using new bareos-dir -xcRessourceName functionality
- use shellcheck -s sh to sanitize code.
- make delete_catalog_backup work the same as make_catalog_backup (using CatalogName)
- make apply_dbconfig supporting remote dbaddress
- update sed expression to only use * for POSIX compliance
- databases scripts (create,drop,make,delete,grant,update):
  + standardized messages.
  + fix handle_database_scripts_command_line_parameter call.
  + enforce -u and -e.
- make_catalog_backup.pl is now a wrapper sh script which warn
  about its deprecated usage (see breaking above)
- docs: CatalogMaintenance.rst chapter renew:
  + use actual BackupCatalog.conf in example.
  + replace mysql related content with PostgreSQL equivalent.
  + remove make_catalog_backup.pl reference.
  + refresh remote database section with new instructions.

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Co-authored-by: Jörg Steffens <joergsteffens@users.noreply.github.com>
mod - CHANGELOG.md Diff File
mod - core/platforms/debian/set_dbconfig_vars.sh.in Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/BareosCommonMakefile Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/Makefile Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/scripts/bareos-config-lib.sh.in Diff File
mod - core/scripts/bareos-config.in Diff File
mod - core/src/cats/CMakeLists.txt Diff File
mod - core/src/cats/create_bareos_database.in Diff File
mod - core/src/cats/delete_catalog_backup.in Diff File
mod - core/src/cats/drop_bareos_database.in Diff File
mod - core/src/cats/drop_bareos_tables.in Diff File
mod - core/src/cats/grant_bareos_privileges.in Diff File
mod - core/src/cats/make_bareos_tables.in Diff File
mod - core/src/cats/make_catalog_backup.in Diff File
mod - core/src/cats/make_catalog_backup.pl.in Diff File
mod - core/src/cats/update_bareos_tables.in Diff File
mod - core/src/defaultconfigs/bareos-dir.d/job/BackupCatalog.conf.in Diff File
mod - core/src/tests/configs/catalog/bareos-dir.d/job/BackupCatalog.conf Diff File
mod - core/src/tests/configs/console-director/tls_disabled/bareos-dir.d/job/BackupCatalog.conf.in Diff File
mod - core/src/tests/configs/console-director/tls_psk_default_enabled/bareos-dir.d/job/BackupCatalog.conf.in Diff File
mod - core/src/tests/configs/run-on-incoming-connect-interval/bareos-dir.d/job/BackupCatalog.conf Diff File
mod - debian/bareos-database-common.config.in Diff File
mod - debian/bareos-database-common.postinst.in Diff File
mod - docs/manuals/source/IntroductionAndTutorial/InstallingBareosWebui.rst Diff File
mod - docs/manuals/source/TasksAndConcepts/AutomatedDiskBackup.rst Diff File
mod - docs/manuals/source/TasksAndConcepts/CatalogMaintenance.rst Diff File
mod - docs/manuals/source/TasksAndConcepts/UsingTapeDrivesWithoutAutochanger.rst Diff File
mod - systemtests/cmake/BareosSystemtestFunctions.cmake Diff File
mod - systemtests/scripts/setup Diff File
rm - systemtests/tests/acl/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/always-incremental-consolidate/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/autochanger/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/bareos-acl/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
mod - systemtests/tests/bareos/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
add - systemtests/tests/bareos/testrunner-test-make-catalog-backup Diff File
rm - systemtests/tests/bconsole/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/bscan-bextract-bls/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/chflags/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/client-initiated/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
mod - systemtests/tests/config-dump/etc/bareos/bareos-dir-19.2.7-show-verbose.conf.in Diff File
mod - systemtests/tests/config-dump/etc/bareos/bareos-dir-19.2.7-xc.conf.in Diff File
mod - systemtests/tests/config-dump/etc/bareos/bareos-dir-full.conf.in Diff File
rm - systemtests/tests/config-syntax-crash/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/copy-archive-job/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/copy-remote-bscan/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/copy/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/dbcopy-mysql-postgresql/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/deprecation/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/droplet-s3/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/encrypt-signature-tls-cert/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/encrypt-signature/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/filesets/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/glusterfs-backend/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/list-backups/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/messages/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/multiplied-device/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/notls/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/passive/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-dir/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
mod - systemtests/tests/py2plug-fd-contrib-bareos_tasks_mysql/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-fd-ldap/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-fd-libcloud/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-fd-local-fileset-restoreobject/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-fd-local-fileset/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-fd-mariabackup/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-fd-ovirt/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-fd-percona-xtrabackup/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-fd-postgres/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-fd-vmware/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/py2plug-sd/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
mod - systemtests/tests/py3plug-fd-contrib-mysql_dump/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/python-bareos/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/reload/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/scheduler-backup/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/spool/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/virtualfull-bscan/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/virtualfull/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/volume-pruning/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/webui-common/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/xattr/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File