]>
git.ipfire.org Git - thirdparty/bacula.git/log
Eric Bollengier [Tue, 28 Mar 2023 16:08:30 +0000 (18:08 +0200)]
regress: Add more tests with update volumeprotect
Eric Bollengier [Tue, 28 Mar 2023 16:07:57 +0000 (18:07 +0200)]
Fix #10004 Check if volumes are used when setting the volume protection
Eric Bollengier [Fri, 24 Mar 2023 06:50:39 +0000 (07:50 +0100)]
Fix missing JobHisto fields in make_mysql_tables
Manual workaround:
ALTER TABLE JobHisto
ADD COLUMN RealStartTime DATETIME,
ADD COLUMN isVirtualFull TINYINT default 0,
ADD COLUMN CompressRatio float default 0,
ADD COLUMN Rate float default 0,
ADD COLUMN LastReadStorageId Integer default 0,
ADD COLUMN LastReadDevice blob,
ADD COLUMN WriteStorageId integer default 0,
ADD COLUMN WriteDevice blob,
ADD COLUMN Encrypted int default 0;
Eric Bollengier [Fri, 17 Mar 2023 10:40:19 +0000 (11:40 +0100)]
Fix list jobmedia command
Eric Bollengier [Mon, 20 Mar 2023 08:31:32 +0000 (09:31 +0100)]
Fix #9981 About segfault in bvfs_get_volume()
Introduced with VolType addition.
norbert.bizet [Mon, 13 Mar 2023 14:54:04 +0000 (10:54 -0400)]
allow double quote escaping in win32 bpipe
Alain Spineux [Tue, 14 Mar 2023 14:25:26 +0000 (15:25 +0100)]
k8s: Fix 9935 part-2 misspelled reponse instead of response
Eric Bollengier [Tue, 14 Mar 2023 08:01:26 +0000 (09:01 +0100)]
Tweak key-manager comments
Eric Bollengier [Fri, 10 Mar 2023 08:16:53 +0000 (09:16 +0100)]
Fix bdb_find_next_volume() with VolEncrypted field
The SQL query was not dealing with the mr->VolEncrypted=-1 value
Eric Bollengier [Fri, 10 Mar 2023 07:56:00 +0000 (08:56 +0100)]
Fix typo in grant_mysql_privileges
Eric Bollengier [Fri, 10 Mar 2023 06:45:35 +0000 (07:45 +0100)]
regress: Fix verify-vol-test and verify-cat-test
A file generated by restart-job-virtual-full-test was causing an
issue with the two tests.
Eric Bollengier [Thu, 9 Mar 2023 16:35:47 +0000 (17:35 +0100)]
Add .ls dironly parameter to list only client directories
Eric Bollengier [Thu, 9 Mar 2023 16:29:34 +0000 (17:29 +0100)]
regress: Schedule exclude-test
Eric Bollengier [Thu, 9 Mar 2023 16:29:26 +0000 (17:29 +0100)]
regress: Add basic test for FileSet exclude
Eric Bollengier [Thu, 9 Mar 2023 16:08:35 +0000 (17:08 +0100)]
regress: Test console runscript status
Eric Bollengier [Thu, 9 Mar 2023 15:49:46 +0000 (16:49 +0100)]
Fix estimate code with limit
Alain Spineux [Thu, 9 Mar 2023 13:57:14 +0000 (14:57 +0100)]
k8s: Fix #9935 name 'response' is not defined in get_pods()
- the previous fix #9727 was buggy, I fixed get_pvcs() but
broke the "weak" get_pods()
- the problem is that __execute() wrapper intercept exceptions
and return and error dict() or the expected response when no
exception are generated
Eric Bollengier [Thu, 9 Mar 2023 08:01:57 +0000 (09:01 +0100)]
Fix #9945 About incorrect job status after Runscript::Console execution
Eric Bollengier [Wed, 8 Mar 2023 18:26:52 +0000 (19:26 +0100)]
Fix typo in MaximumConcurrentJobPerLevel
Eric Bollengier [Tue, 7 Mar 2023 19:10:46 +0000 (20:10 +0100)]
Tweak breg.c code
Eric Bollengier [Wed, 8 Mar 2023 15:45:46 +0000 (16:45 +0100)]
Make Jobs with runscript "Queued" in timeout to wait
Eric Bollengier [Fri, 3 Mar 2023 14:55:49 +0000 (15:55 +0100)]
Prune Object records when pruning Files
Eric Bollengier [Mon, 6 Mar 2023 21:09:12 +0000 (22:09 +0100)]
Fix #9933 About incorrect message of the setbandwidth command
Alain Spineux [Tue, 7 Mar 2023 10:34:13 +0000 (11:34 +0100)]
Fix #9923 Windows crash when Fileset is empty
- this was because of some debuging
Eric Bollengier [Mon, 6 Mar 2023 16:59:20 +0000 (17:59 +0100)]
Fix #9912 About Director crash with status dir
#3 str_to_int64 (str=0xd5 <Address 0xd5 out of bounds>) at edit.c:72
#4 BDB::bdb_find_next_volume (this=0x7f573403cc28, jcr=jcr@entry=0x7f573400b088, item=<optimized out>, item@entry=-1, InChanger=InChanger@entry=false, mr=mr@entry=0x7f57449796e0) at sql_find.c:586
Eric Bollengier [Thu, 2 Mar 2023 17:33:11 +0000 (18:33 +0100)]
Fix orphan buffer with plugin list
Eric Bollengier [Tue, 28 Feb 2023 20:06:11 +0000 (21:06 +0100)]
Enhance MaximumConcurrentJobPerLevel script
Eric Bollengier [Tue, 28 Feb 2023 08:32:59 +0000 (09:32 +0100)]
Report an error when .query cannot find a suitable plugin
Eric Bollengier [Mon, 27 Feb 2023 10:53:24 +0000 (11:53 +0100)]
regress: Add test for console runscript
Eric Bollengier [Fri, 24 Feb 2023 15:36:24 +0000 (16:36 +0100)]
regress: Add get_client_name() to functions.pm
norbert.bizet [Fri, 3 Feb 2023 09:07:30 +0000 (04:07 -0500)]
store-mngr: Fix #8852 #9572 2 new store-mngr strategies and regress tests
Eric Bollengier [Tue, 31 Jan 2023 08:48:55 +0000 (09:48 +0100)]
Add limit option to the estimate command
Eric Bollengier [Wed, 22 Feb 2023 08:14:24 +0000 (09:14 +0100)]
Fix warning reported by new GCC
Eric Bollengier [Mon, 20 Feb 2023 08:43:55 +0000 (09:43 +0100)]
Fix typo in MaximumConcurrentJobPerLevel script
Alain Spineux [Fri, 17 Feb 2023 18:10:03 +0000 (19:10 +0100)]
win32: code cleanup
Alain Spineux [Fri, 17 Feb 2023 14:42:54 +0000 (15:42 +0100)]
Fix #9749: backup windows mount points and cleanup and improve win32 code
Alain Spineux [Thu, 16 Feb 2023 10:50:56 +0000 (11:50 +0100)]
win32: cleanup VSSClient constructor
- VSSClient is a pure class that has virtual methods, using a
memset() to initialize the class is not appropriate because the object
include a VPTR that is initialized by the constructor
- gcc 11.3 complains about that
- initializing the class the right way cannot be wrong
- Using C++11 in-member class initializers (we are not building win32 on
centos 5 anymore but on modern platforms :-)
Alain Spineux [Wed, 15 Feb 2023 19:39:40 +0000 (20:39 +0100)]
win32: typos & comments
Alain Spineux [Fri, 10 Feb 2023 09:26:05 +0000 (10:26 +0100)]
win32: add helper function
- add win32_to_unix_slash() to compat.cpp
simply replace any '\\' into '/'
- add remove_win32_trailing_slash() to compat.cpp
- add dump_name_list() to find.c for debuging fileset
Alain Spineux [Wed, 8 Feb 2023 10:30:36 +0000 (11:30 +0100)]
regress: in compare_backup_content ignore strange files in Microsoft/Search
- Files in C:/ProgramData/Microsoft/Search/Data/Applications/Windows
don't show up in snapshot, they look like Reparse point
only the windows explorers show that the file is a reparse point
command line tools don't
as estimate don't use VSS, this make a diff between both
- reset "nb" to zero to always show the 10 first files that are in
the backup but not in estimate
Eric Bollengier [Fri, 17 Feb 2023 17:22:26 +0000 (18:22 +0100)]
Fix update_mysql_tables script
Eric Bollengier [Thu, 16 Feb 2023 13:57:25 +0000 (14:57 +0100)]
Fix bconsole path in MaximumConcurrentJobPerLevel script
Eric Bollengier [Thu, 16 Feb 2023 11:12:22 +0000 (12:12 +0100)]
Cleanup Jsmg/Dmsg calls
Eric Bollengier [Wed, 15 Feb 2023 11:05:12 +0000 (12:05 +0100)]
Add MaximumConcurrentJobPerLevel script for RunScript Job Queue control example
Eric Bollengier [Mon, 13 Feb 2023 19:17:49 +0000 (20:17 +0100)]
regress: update runscript-test for cancel status
Eric Bollengier [Mon, 13 Feb 2023 17:11:53 +0000 (18:11 +0100)]
Allow to cancel a job in the jobq with the runscript exit status 2
Eric Bollengier [Fri, 10 Feb 2023 14:18:06 +0000 (15:18 +0100)]
regress: redurce verify-data-test verbosity
Eric Bollengier [Wed, 18 Jan 2023 17:57:28 +0000 (18:57 +0100)]
regress: Tweak runscript-test
Eric Bollengier [Wed, 14 Dec 2022 18:57:43 +0000 (19:57 +0100)]
Add runscript RunsWhen=Queue to create advanced job queue management scripts
Eric Bollengier [Wed, 14 Dec 2022 15:12:24 +0000 (16:12 +0100)]
Fix .status storage devices output
Eric Bollengier [Wed, 18 Jan 2023 17:28:23 +0000 (18:28 +0100)]
regress: Add test for list restoreobjects client= command
Eric Bollengier [Mon, 21 Nov 2022 15:24:20 +0000 (16:24 +0100)]
Add list restoreobject client= option
Alain Spineux [Thu, 2 Feb 2023 13:32:54 +0000 (14:32 +0100)]
win32: fix HRESULT constant mismatch between signed and unsigned
- HRESULT is a 32bits signed value
- some constant are >= 0x80000000 that are out of the range of a signed 32
- An alternative would be to set the type casting inside the .h file in the
depkgs directory
- this concern (in 64bits)
- VSS_E_INVALID_XML_DOCUMENT
- VSS_E_OBJECT_NOT_FOUND
- VSS_E_BAD_STATE
- VSS_E_WRITER_INFRASTRUCTURE
- VSS_E_WRITER_NOT_RESPONDING
Eric Bollengier [Fri, 3 Feb 2023 15:22:42 +0000 (16:22 +0100)]
Fix aix compilation
Eric Bollengier [Tue, 31 Jan 2023 09:23:57 +0000 (10:23 +0100)]
regress: Add test for list reviewed command
Eric Bollengier [Tue, 31 Jan 2023 09:01:42 +0000 (10:01 +0100)]
Add bconsole command 'list jobs reviewed=<0|1>'
Alain Spineux [Tue, 31 Jan 2023 10:53:23 +0000 (11:53 +0100)]
fix key-manager.py local variable 'crypto_ctx' referenced before assignment
2023-01-31 11:55:22 ERR key-manager.py:471 unhandled exception in getkey0
Traceback (most recent call last):
File "/home/bac/workspace/bee/regress/bin/key-manager.py", line 469, in getkey
getkey0(args)
File "/home/bac/workspace/bee/regress/bin/key-manager.py", line 409, in getkey0
crypto_ctx=get_crypto_ctx_from_config(args, volume_name)
File "/home/bac/workspace/bee/regress/bin/key-manager.py", line 310, in get_crypto_ctx_from_config
return crypto_ctx
UnboundLocalError: local variable 'crypto_ctx' referenced before assignment
Alain Spineux [Fri, 13 Jan 2023 16:41:46 +0000 (17:41 +0100)]
regress: add simple volume encryption test volenc-test
- un-comment some lines to check error conditions
- all error condition need to be automated
Alain Spineux [Fri, 13 Jan 2023 16:39:51 +0000 (17:39 +0100)]
tweak install-key-manager.sh & key-manager.py
- check for python gnupg module
- make key-manager works when no regex match the volume name
Eric Bollengier [Fri, 13 Jan 2023 12:13:05 +0000 (13:13 +0100)]
Fix AIX compilation
Eric Bollengier [Thu, 12 Jan 2023 16:37:08 +0000 (17:37 +0100)]
Fix compilation for AIX
Eric Bollengier [Tue, 10 Jan 2023 17:18:05 +0000 (18:18 +0100)]
Use the malware command name as description rather than "user defined"
Eric Bollengier [Wed, 11 Jan 2023 14:01:21 +0000 (15:01 +0100)]
regress: Fix verify-cat-test and verify-vol-test
Eric Bollengier [Tue, 10 Jan 2023 14:07:36 +0000 (15:07 +0100)]
regress: Fix status-test script
Alain Spineux [Thu, 12 Jan 2023 13:51:13 +0000 (14:51 +0100)]
regress: cleanup gnupg home
Alain Spineux [Thu, 12 Jan 2023 13:50:07 +0000 (14:50 +0100)]
improve the key-manager to better support master-key
- get gnupghome from key-manager.conf or from install script
- better error reporting to the SD
Alain Spineux [Tue, 10 Jan 2023 17:19:47 +0000 (18:19 +0100)]
regress: volenc-mkey-test test master-key
- basic test
Alain Spineux [Tue, 10 Jan 2023 16:49:15 +0000 (17:49 +0100)]
new installation script install-volume-encryption.sh
- the script setup a default the etc/key-manager.conf and initialize
gnupg in etc/gnupg
Alain Spineux [Fri, 6 Jan 2023 13:39:14 +0000 (14:39 +0100)]
async.sh: sync the .in files
- unfortunately this don't replace the @xxx@ :-(
Alain Spineux [Fri, 6 Jan 2023 13:28:03 +0000 (14:28 +0100)]
regress: tweak the key-manager call to not use the master-key by default
Alain Spineux [Fri, 6 Jan 2023 13:07:16 +0000 (14:07 +0100)]
Add basic master-key support to key-manager
- add a configuration file to the key-manager to setup the master-key
- increase "encoded-key" size in the SD to support gnupg encrypted "blob"
Alain Spineux [Thu, 12 Jan 2023 10:20:34 +0000 (11:20 +0100)]
remove xxh_x86dispatch.c that was unused from Makefile
- of course this don't compile on AIX and other non intel CPU
norbert.bizet [Wed, 11 Jan 2023 14:52:12 +0000 (09:52 -0500)]
Cloud: Fix #9799 Add objects_default_tiers support into bsdjson
norbert.bizet [Tue, 10 Jan 2023 10:47:43 +0000 (05:47 -0500)]
Cloud: Fix #9747 Fatal error prevents catalog update so Volume was never set in error.
Alain Spineux [Fri, 6 Jan 2023 16:11:13 +0000 (17:11 +0100)]
!! handle the Jmsg at an upper level when required
The goal is to allow the "next_volume" to work in a backup and in last
resort to finish by a mount request
This Jmsg was handy, it was avoiding to handle the error a the caller level
and sometime at the caller+2 level
Here they are
DEVICE::load_encryption_key(DCR *, const char *, const char *, u_int32_t *, unsigned char *, u_int32_t *, unsigned char *) : bool
DEVICE::read_dev_volume_label(DCR *) : int
acquire_device_for_read(DCR *, u_int32_t) : bool
aligned_dev::read_dev_volume_label(DCR *) : int
cloud_dev::read_dev_volume_label(DCR *) : int
DCR::check_volume_label(bool &, bool &) : int
device_initialization(void *) : void *
label_volume_if_ok(DCR *, char *, char *, char *, int, int) : void
mount_cmd(JCR *) : bool
read_label(DCR *) : bool
read_volume_label(JCR *, DCR *, DEVICE *, int) : void
readlabelcmd() : void
DEVICE::rewrite_volume_label(DCR *, bool) : bool
cloud_dev::rewrite_volume_label(DCR *, bool) : bool
DCR::mount_next_write_volume() : bool
DEVICE::write_volume_label(DCR *, const char *, const char *, bool, bool) : bool
cloud_dev::write_volume_label(DCR *, const char *, const char *, bool, bool) : bool
DCR::try_autolabel(bool) : int
label_volume_if_ok(DCR *, char *, char *, char *, int, int) : void
labelcmd() : void
Alain Spineux [Fri, 6 Jan 2023 12:36:04 +0000 (13:36 +0100)]
fix Cannot free Volume XXX, because it is reserved by someone else
- when something goes wrong, sometime, the volume_unused() is not called
and the volume stay stuck
- always call volume_unused() in the "check_bail_out:"
- load_encryption_key() can return a new error: VOL_ENC_ERROR
that will trigger the call to volume_unused()
Alain Spineux [Thu, 5 Jan 2023 15:25:09 +0000 (16:25 +0100)]
typo in Dmsg
norbert.bizet [Thu, 5 Jan 2023 13:44:12 +0000 (08:44 -0500)]
adjust antivirus-test to new jobid selection
Eric Bollengier [Thu, 5 Jan 2023 13:43:21 +0000 (08:43 -0500)]
Fix #9780 allow multiple jobids in fileevents request
Eric Bollengier [Wed, 4 Jan 2023 14:27:03 +0000 (15:27 +0100)]
Fix #9786 About tab completion issue
Issue introduced by "Improve .help to display information about dot-commands"
Eric Bollengier [Wed, 4 Jan 2023 14:16:36 +0000 (15:16 +0100)]
Fix #9791 About incorrect connection message generated during a Virtual Full
Issue introduced in 14.1
Eric Bollengier [Wed, 4 Jan 2023 12:49:21 +0000 (13:49 +0100)]
Fix #9781 About adding "list fileevents" to the help command output
Eric Bollengier [Wed, 4 Jan 2023 12:42:54 +0000 (13:42 +0100)]
Fix #9790 Enhance Malware error message
norbert.bizet [Wed, 21 Dec 2022 14:40:20 +0000 (09:40 -0500)]
Cloud: Add a test that manually delete part.1 so it's correctly restored from cloud
Eric Bollengier [Wed, 21 Dec 2022 09:35:31 +0000 (10:35 +0100)]
Fix #9764 Abort a job if a PluginOptions is incorrect
If a plugin is not installed and is specified with the Job PluginOptions, the
job simply terminated "Verify OK"
With other plugins, like the vSphere plugin, if the plugin is not installed,
but a Fileset calls it, we get a failed job and a warning about "command not
found" or similar.
The important part here is that if the plugin is missing, we end up with False
negatives that a sysadmin should be notified about.
Eric Bollengier [Wed, 21 Dec 2022 08:59:48 +0000 (09:59 +0100)]
Fix #9765 About FileEvent table permission on Redhat
Eric Bollengier [Tue, 20 Dec 2022 17:41:37 +0000 (18:41 +0100)]
Install malware database tools to exepath
Eric Bollengier [Tue, 20 Dec 2022 17:38:29 +0000 (18:38 +0100)]
Fix #9712 about SHA256 size detection for malware
Eric Bollengier [Tue, 20 Dec 2022 17:30:38 +0000 (18:30 +0100)]
Use number/limit on status schedule output
Eric Bollengier [Tue, 20 Dec 2022 17:07:35 +0000 (18:07 +0100)]
Improve .help to display information about dot-commands
Eric Bollengier [Tue, 20 Dec 2022 09:02:15 +0000 (10:02 +0100)]
Fix connection information in verify and virtualfull jobs
Eric Bollengier [Tue, 20 Dec 2022 08:49:42 +0000 (09:49 +0100)]
regress: Fix read-only-device-test
Eric Bollengier [Mon, 19 Dec 2022 17:44:54 +0000 (18:44 +0100)]
regress: Fix store-mngr-leastused-test
Eric Bollengier [Mon, 19 Dec 2022 16:40:59 +0000 (17:40 +0100)]
regress: Fix totp-auth-plugin-test
Eric Bollengier [Mon, 19 Dec 2022 16:17:08 +0000 (17:17 +0100)]
regress: Fix daemon-connection-xxx tests
Eric Bollengier [Mon, 19 Dec 2022 15:20:59 +0000 (16:20 +0100)]
regress: Fix portability of network-error-test
Eric Bollengier [Mon, 19 Dec 2022 15:32:00 +0000 (16:32 +0100)]
Add connection message back in Copy/Migration job log
Eric Bollengier [Mon, 19 Dec 2022 15:06:34 +0000 (16:06 +0100)]
Fix catalog's update procedure for JobHisto
Eric Bollengier [Mon, 19 Dec 2022 08:33:43 +0000 (09:33 +0100)]
regress: Fix double EncryptionCommand in regress
Eric Bollengier [Fri, 16 Dec 2022 17:54:16 +0000 (18:54 +0100)]
Fix schema for old MySQL