]>
git.ipfire.org Git - thirdparty/bacula.git/log
Michal Rakowski [Thu, 3 Dec 2020 11:16:39 +0000 (12:16 +0100)]
regress: Add bscan test for purged files
Michal Rakowski [Thu, 3 Dec 2020 05:58:29 +0000 (06:58 +0100)]
Improve bscan so that it reinserts file records after prunning
Alain Spineux [Wed, 2 Dec 2020 15:17:54 +0000 (16:17 +0100)]
Fix #7113 Enable timestamp in tracefile for SD
Eric Bollengier [Wed, 2 Dec 2020 14:47:17 +0000 (15:47 +0100)]
Fix update_mysql_tables for UNSIGNED Ids
Eric Bollengier [Wed, 2 Dec 2020 14:37:52 +0000 (15:37 +0100)]
Fix Id type in MySQL make/update script
Michal Rakowski [Tue, 1 Dec 2020 13:57:59 +0000 (14:57 +0100)]
Fix bscan's flushing file records in batch
Michal Rakowski [Tue, 1 Dec 2020 13:31:32 +0000 (14:31 +0100)]
regress: Update bscan's restore/plugin objects tests to check for duplicates
Michal Rakowski [Tue, 1 Dec 2020 12:31:44 +0000 (13:31 +0100)]
regress: fix bscan-plugin-objects-test
Michal Rakowski [Tue, 1 Dec 2020 12:33:11 +0000 (13:33 +0100)]
Change plugin object-related logic in bscan to avoid duplicates
Michal Rakowski [Tue, 1 Dec 2020 12:13:54 +0000 (13:13 +0100)]
Fix #7098 About bscan duplicating restore objects
Michal Rakowski [Fri, 27 Nov 2020 16:25:05 +0000 (17:25 +0100)]
Remove unused 'db_free_pluginobject_record' method
Alain Spineux [Tue, 1 Dec 2020 10:31:49 +0000 (11:31 +0100)]
cloud: tweak remove duplicate definition of BaculaSDdriver()
- the macro "is_loadable_driver" is not used anymore and has been removed
by Eric longtime ago
Sven Hartge [Mon, 30 Nov 2020 09:24:16 +0000 (10:24 +0100)]
Fix org#2568 About compilation issue on gcc10
Eric Bollengier [Tue, 20 Oct 2020 07:51:35 +0000 (09:51 +0200)]
Add code to retry a MySQL query after a deadlock
Eric Bollengier [Mon, 30 Nov 2020 09:07:15 +0000 (10:07 +0100)]
Fix org#2584 About inconsitancies in the make_mysql_tables script
It is required for MariaDB 10.5 on Debian
Eric Bollengier [Fri, 27 Nov 2020 11:52:42 +0000 (12:52 +0100)]
Tweak features not available
Eric Bollengier [Fri, 27 Nov 2020 11:55:52 +0000 (12:55 +0100)]
Tweak debug message in dedup code
Alain Spineux [Tue, 24 Nov 2020 13:34:04 +0000 (14:34 +0100)]
regress: add DEDUP_CONFIG_FMT variable to select old or new config format
- define DEDUP_CONFIG_FMT in your "config" file or better on the command
line like REGRESS_DEBUG
- values can be 1 or 2
- 1 the dedupengine is defined in the Storage resource
- 2 the dedupengine is defined in a separate resource and the
dedupengine directive is added to all devices
(like the Device Type = Dedup)
Alain Spineux [Tue, 24 Nov 2020 13:11:40 +0000 (14:11 +0100)]
dedup: Fix #7033 device not initialized when using legacy config format
- the default dedupengine had no driver_type and was not initialized as
a Legacy or Dedup2 dedupengine
- When no Dedupengine is specified in a Device resource and if there is
only one dedupengine specified in the Storage resource or in a
Dedupengine resource then use this one. Else return an error.
Eric Bollengier [Thu, 26 Nov 2020 16:43:59 +0000 (17:43 +0100)]
win32: Sign code when building it
Eric Bollengier [Wed, 25 Nov 2020 12:39:09 +0000 (13:39 +0100)]
Fix #7079 About a segfault in a copyjob when the fileset is no longer defined
Bug #7079
=========
Description
-----------
The user has renamed a FileSet (previously used by backup jobs) and the crash
happened during a copy job execution that tried to copy one of the jobs that
used a non existent FileSet.
Workaround
----------
Do a copy of the FileSet instead of renaming it.
**Fixed in version 12.4.4**
Alain Spineux [Mon, 23 Nov 2020 12:21:40 +0000 (13:21 +0100)]
Tweak openssl initialisation order
- We must test the result of SSL_CTX_new() ( and exit if there is an error)
BEFORE to do the SSL_CTX_set_options
Radosław Korzeniewski [Mon, 16 Nov 2020 16:03:17 +0000 (17:03 +0100)]
Unify UA_VERSION for both Community and BEE.
Alain Spineux [Mon, 16 Nov 2020 16:00:22 +0000 (17:00 +0100)]
regress: add the dedup driver version to the variant name
- the variant is displayed in the "Start" message of any regress when
dedup is enable, see below for before/after output
B === Start dedup-cmd-test Dedup(bothsides,fdcache=no) at 08:46:50 ===
A === Start dedup-cmd-test Dedup(Legacy,bothsides,fdcache=no) at 08:46:..
Eric Bollengier [Mon, 16 Nov 2020 14:42:19 +0000 (15:42 +0100)]
Fix restore objectid function (part2)
Eric Bollengier [Mon, 16 Nov 2020 14:41:50 +0000 (15:41 +0100)]
Generate few more files with test-plugin-fd
Eric Bollengier [Mon, 16 Nov 2020 12:58:55 +0000 (13:58 +0100)]
Fix restore objectid= command
The ua->cmd variable is overwritten by the get_client_name() call
Eric Bollengier [Mon, 16 Nov 2020 12:27:08 +0000 (13:27 +0100)]
Fix bvfs_restore command with objectid and incremental jobs
Eric Bollengier [Fri, 13 Nov 2020 21:02:36 +0000 (22:02 +0100)]
regress: Fix sd-sd-test with DedupDriver
Michal Rakowski [Thu, 12 Nov 2020 12:18:02 +0000 (13:18 +0100)]
Fix #6981 About more info during deleting plugin object
Michal Rakowski [Thu, 12 Nov 2020 12:08:27 +0000 (13:08 +0100)]
Fix #6980 About lack of help for 'delete object' command
Michal Rakowski [Thu, 12 Nov 2020 09:11:38 +0000 (10:11 +0100)]
Fix #6940 about bscan segfaulting
Needed to move free_dcr() outside of bscan_free_jcr() callback because
some jcr's were deleted during traversing of dcr's list.
Eric Bollengier [Tue, 10 Nov 2020 10:25:15 +0000 (11:25 +0100)]
Fix bacula-fused hanging issue with the lock manager
Eric Bollengier [Tue, 10 Nov 2020 14:07:41 +0000 (15:07 +0100)]
Fix Makefile for freebsd
Michal Rakowski [Mon, 9 Nov 2020 15:55:03 +0000 (16:55 +0100)]
Allow passing empty arguments to bvfs_restore
To be backward compatible we need to allow passing arguments like 'fileid='
Eric Bollengier [Mon, 9 Nov 2020 15:13:36 +0000 (16:13 +0100)]
regress: Schedule new bscan-many-volumes-test
Michal Rakowski [Mon, 9 Nov 2020 15:06:17 +0000 (16:06 +0100)]
regress: add bscan test for parsing records from many volumes
Eric Bollengier [Fri, 6 Nov 2020 20:27:05 +0000 (21:27 +0100)]
Fix unexpected connection event sent by the FD when the Message resource is not configured
Eric Bollengier [Fri, 6 Nov 2020 19:59:22 +0000 (20:59 +0100)]
regress: Modify events-test to check if FD/SD are forwarding events
Alain Spineux [Thu, 16 Jul 2020 11:40:01 +0000 (13:40 +0200)]
Initialize the working_directory to a useful value until read from config file
- to generate a backtrace in a valid directory
- use /tmp by default or the Windows directory given by GetTempPath()
Eric Bollengier [Fri, 6 Nov 2020 19:21:48 +0000 (20:21 +0100)]
Add event with full restore command
Alain Spineux [Thu, 16 Jul 2020 14:46:09 +0000 (16:46 +0200)]
Allow backtrace to work before the load of the config file
- working_directory is NULL until the config file has been loaded
- there was a bug in signal_handler(), working_directory (wd) was set to
"buf" and we were doing a
snprintf(buf, sizeof(buf), "%s/bacula.%s.traceback", wd, pid_buf);
where wd and buf point to the same location, that was generating
funny path like /bacula.7647.traceback/bacula.7647.traceback
- now we get something like /tmp/bacula.31150.traceback
- no need of any check in "btraceback"
Eric Bollengier [Tue, 22 Sep 2020 09:12:36 +0000 (11:12 +0200)]
Use seek() with FO_OFFSETS
Alain Spineux [Mon, 19 Oct 2020 16:28:56 +0000 (18:28 +0200)]
regress: virtual-backup-test add XPARAM USE_SCHEDULER
- use : USE_SCHEDULER=yes tests/virtual-backup-test
to run the program via the scheduler instead of the "run" command
the scheduler fire the job maximum 2min after the start of the program
Alain Spineux [Mon, 19 Oct 2020 16:33:48 +0000 (18:33 +0200)]
Fix #6860 DIR crash when VF are started from the scheduler
- the 2016 feature "to implement MaxVirtualFullInterval" from the
COMMUNITY add a field to the "class RUN" but forget to initialize it
to NULL in RUN::clearall() and then got 0x5555555555555555 instead
this was written in 2016 by Thomas Lohman for the COMMUNITY and
added in march 2020 for the 12.4.0
- test it with : USE_SCHEDULER=yes REGRESS_DEBUG=1 tests/virtual-backup-test
Michal Rakowski [Fri, 6 Nov 2020 11:06:05 +0000 (12:06 +0100)]
Tweak in bscan so that plugin object is logged based on its name, not id
Michal Rakowski [Fri, 6 Nov 2020 11:05:16 +0000 (12:05 +0100)]
test-plugin: Tweak in plugin object so that it can be distinguished
Michal Rakowski [Fri, 6 Nov 2020 11:03:44 +0000 (12:03 +0100)]
Tweak in bdb_get_plugin_object_record()
Now this method tries to fill every available field and return
specific object record based on that.
Michal Rakowski [Fri, 6 Nov 2020 06:57:31 +0000 (07:57 +0100)]
move 'append_filter' catalog helper to more common place
Michal Rakowski [Wed, 4 Nov 2020 14:18:54 +0000 (15:18 +0100)]
Add proper handling of batch SQL queries in bscan
Michal Rakowski [Thu, 5 Nov 2020 12:57:21 +0000 (13:57 +0100)]
Add missing jcr's reference counter decrement in bscan.
Without it, jcr was not freed at all and the the 'bscan_free_jcr' couldn't be called.
There is probably more work around that, since each 'get_jcr_by_session'
call increases reference counter and it's not always decreased after
that.
Michal Rakowski [Thu, 5 Nov 2020 08:14:45 +0000 (09:14 +0100)]
Add missing database closing in bscan
Michal Rakowski [Thu, 5 Nov 2020 08:12:36 +0000 (09:12 +0100)]
Remove redundant 'db_close_database' define
Eric Bollengier [Thu, 5 Nov 2020 16:56:29 +0000 (17:56 +0100)]
Avoid shadow parameter in BDB::bdb_create_log_record()
Michal Rakowski [Thu, 5 Nov 2020 14:02:32 +0000 (15:02 +0100)]
regress: Add check for bvfs restore in plugin-objects-test
Eric Bollengier [Wed, 4 Nov 2020 15:16:12 +0000 (16:16 +0100)]
Fix #6932 Add comment to make_catalog_backup.pl on the $wd variable
Eric Bollengier [Wed, 4 Nov 2020 15:17:09 +0000 (16:17 +0100)]
regress: Add VerifyData job into bacula-dir-vtape.conf.in
Eric Bollengier [Tue, 3 Nov 2020 16:04:09 +0000 (17:04 +0100)]
Fix #6938 About segfault in .defaults command
Michal Rakowski [Tue, 3 Nov 2020 12:55:26 +0000 (13:55 +0100)]
Fix #6711 About wrong error message in case of authentication problem
Eric Bollengier [Tue, 3 Nov 2020 10:30:33 +0000 (11:30 +0100)]
regress: Rename tests/console-disable-jobs-all-test in CDASH
Eric Bollengier [Tue, 3 Nov 2020 10:27:42 +0000 (11:27 +0100)]
regress: Schedule tests/console-disable-job-test in CDASH
Michal Rakowski [Mon, 2 Nov 2020 22:41:01 +0000 (23:41 +0100)]
regress: Add test for enable/disable jobs range/list
Michal Rakowski [Mon, 2 Nov 2020 13:56:51 +0000 (14:56 +0100)]
regress: Rename missnamed test (delete-jobs -> disable-jobs)
Michal Rakowski [Mon, 2 Nov 2020 12:16:42 +0000 (13:16 +0100)]
Fix #2776 About specifying range in 'disable jobs' command
Eric Bollengier [Tue, 3 Nov 2020 10:17:20 +0000 (11:17 +0100)]
Use LSMDATE rather than BDATE for startup/shutdown events
Eric Bollengier [Tue, 3 Nov 2020 10:00:21 +0000 (11:00 +0100)]
Add VERSION/BDATE to daemon startup/shutdown events
Eric Bollengier [Mon, 2 Nov 2020 12:32:08 +0000 (13:32 +0100)]
regress: Tweak events-pruning-test timing
Michal Rakowski [Fri, 30 Oct 2020 21:53:08 +0000 (22:53 +0100)]
Fix #6920 About lack of filename logging in case of reading state_file err
Eric Bollengier [Mon, 2 Nov 2020 09:17:08 +0000 (10:17 +0100)]
regress: Fix copy-sqlquery-duplicate-test
The SQL query used in the test is not compatible with SQLite or MySQL
Eric Bollengier [Mon, 2 Nov 2020 09:41:07 +0000 (10:41 +0100)]
regress: Enhance and fix on MySQL the plugin-object-syntetic-test
Michal Rakowski [Thu, 29 Oct 2020 10:55:25 +0000 (11:55 +0100)]
regress: update plugin-object-test with bvfs restore
Michal Rakowski [Fri, 30 Oct 2020 12:25:20 +0000 (13:25 +0100)]
Add plugin object support to bvfs_restore command
Eric Bollengier [Thu, 29 Oct 2020 14:44:50 +0000 (15:44 +0100)]
Add event record at the end of the Catalog upgrade
This event can help administrators to track changes that
were done to the catalog. It can be reviewed with a SQL command
or the "list events" command.
Radosław Korzeniewski [Thu, 22 Oct 2020 11:35:16 +0000 (13:35 +0200)]
BPAM: Fix typos
Michal Rakowski [Tue, 27 Oct 2020 12:24:35 +0000 (13:24 +0100)]
regress: Add check for logging of copy jobs upgraded to backup
Michal Rakowski [Tue, 27 Oct 2020 12:24:35 +0000 (13:24 +0100)]
Fix #6857 About logging of copy jobs upgraded to backup
Eric Bollengier [Tue, 27 Oct 2020 14:58:54 +0000 (15:58 +0100)]
tweak base64 unittest
Eric Bollengier [Tue, 27 Oct 2020 14:20:28 +0000 (15:20 +0100)]
regress: Fix timing issue in event-pruning-test
Eric Bollengier [Tue, 27 Oct 2020 09:27:40 +0000 (10:27 +0100)]
regress: Fix timeout issue with CDASH on new scripts
Michal Rakowski [Tue, 27 Oct 2020 08:32:19 +0000 (09:32 +0100)]
Fix incompatibility problem introduced with Plugin Object
Eric Bollengier [Mon, 26 Oct 2020 17:30:03 +0000 (18:30 +0100)]
Fix #6891 Handle empty PluginConfig files
Eric Bollengier [Mon, 26 Oct 2020 14:02:17 +0000 (15:02 +0100)]
regress: schedule console-delete-jobs-all-test
Michal Rakowski [Wed, 21 Oct 2020 16:14:23 +0000 (18:14 +0200)]
regress: add test for 'disable/enable jobs all' command
Michal Rakowski [Mon, 19 Oct 2020 22:22:19 +0000 (00:22 +0200)]
Fix #5013 About 'enable/disable jobs all' command
Michal Rakowski [Mon, 26 Oct 2020 11:14:46 +0000 (12:14 +0100)]
small fix for db_get_plugin_object_record
Michal Rakowski [Mon, 26 Oct 2020 11:13:38 +0000 (12:13 +0100)]
tweak: bscan fix messages for plugin objects
Michal Rakowski [Mon, 19 Oct 2020 21:01:15 +0000 (23:01 +0200)]
Fix #6852 About 'restore copies'
Eric Bollengier [Mon, 26 Oct 2020 09:13:44 +0000 (10:13 +0100)]
Fix bvfs-restore-test on MySQL with many files
Eric Bollengier [Fri, 23 Oct 2020 19:20:33 +0000 (21:20 +0200)]
Fix #6892 About issue in update_bacula_tables script
Eric Bollengier [Fri, 23 Oct 2020 15:52:23 +0000 (17:52 +0200)]
regress: Schedule new tests
Michal Rakowski [Thu, 22 Oct 2020 21:03:09 +0000 (23:03 +0200)]
regress: Add test for 'delete object' command
Michal Rakowski [Thu, 22 Oct 2020 21:28:54 +0000 (23:28 +0200)]
Fix #6099 About 'delete object' command
Alain Spineux [Fri, 23 Oct 2020 13:02:02 +0000 (15:02 +0200)]
fix SQL query for sqlite default_sql_bvfs_select (BMR restore fail)
Eric Bollengier [Fri, 23 Oct 2020 08:52:18 +0000 (10:52 +0200)]
Add SHA256/SHA512 to Accurate job options
Eric Bollengier [Fri, 16 Oct 2020 20:25:33 +0000 (22:25 +0200)]
rpms: Fix spec file with ldap auth plugin
Eric Bollengier [Fri, 16 Oct 2020 18:32:57 +0000 (20:32 +0200)]
Fix compilation on plugins
Eric Bollengier [Fri, 16 Oct 2020 16:46:32 +0000 (18:46 +0200)]
Fix win32 compilation with dedup
Michal Rakowski [Fri, 16 Oct 2020 14:18:56 +0000 (16:18 +0200)]
Fix crash on get_plugin_object_record()
Eric Bollengier [Wed, 23 Sep 2020 06:38:16 +0000 (08:38 +0200)]
win32: Update OpenSSL to 1.1.1f
Michal Rakowski [Fri, 16 Oct 2020 13:12:07 +0000 (15:12 +0200)]
Fix for update mysql script with ObjectCategory index