]> git.ipfire.org Git - thirdparty/bacula.git/log
thirdparty/bacula.git
2 years agoAdd bstrcasestr() for non GNU platforms
Eric Bollengier [Wed, 14 Sep 2022 13:36:36 +0000 (15:36 +0200)] 
Add bstrcasestr() for non GNU platforms

2 years agoFix #9334 About issue with the AllowXXXXDirectories directive that was not case sensi...
Eric Bollengier [Wed, 14 Sep 2022 12:54:35 +0000 (14:54 +0200)] 
Fix #9334 About issue with the AllowXXXXDirectories directive that was not case sensitive on Unix

2 years agosir: Fix the record number with aligned volume
Eric Bollengier [Fri, 9 Sep 2022 13:03:00 +0000 (15:03 +0200)] 
sir: Fix the record number with aligned volume

2 years agoOptimize Aligned format for Single Item Restore
Eric Bollengier [Fri, 17 Jun 2022 08:56:20 +0000 (10:56 +0200)] 
Optimize Aligned format for Single Item Restore

Allow to read only the ameta records and rehydrate the data block
only when needed.

dev->clear_rehydrate_record();
...
// read blocks
dev->rehydrate_record(dcr, rec)

2 years agosir: Fix the record number with aligned volume
Eric Bollengier [Fri, 9 Sep 2022 13:03:00 +0000 (15:03 +0200)] 
sir: Fix the record number with aligned volume

2 years agoregress: reduce backup-bacula-test output
Eric Bollengier [Fri, 9 Sep 2022 12:59:07 +0000 (14:59 +0200)] 
regress: reduce  backup-bacula-test output

2 years agocloud: Fix #9419 Avoid abort when truncate() fails
norbert.bizet [Fri, 9 Sep 2022 12:56:53 +0000 (08:56 -0400)] 
cloud: Fix #9419 Avoid abort when truncate() fails

2 years agoFix #9455 test-cpp.c in 14.0.5 don't compile on freebsd
Alain Spineux [Thu, 8 Sep 2022 11:54:07 +0000 (13:54 +0200)] 
Fix #9455 test-cpp.c in 14.0.5 don't compile on freebsd

- fixed the elegant way :-)

2 years agoFix #9443 About incorrect management of the STDERR via open_bpipe()
Eric Bollengier [Wed, 7 Sep 2022 09:26:21 +0000 (11:26 +0200)] 
Fix #9443 About incorrect management of the STDERR via open_bpipe()

2 years agoregress: Add test to scan_string()
Eric Bollengier [Fri, 2 Sep 2022 14:48:07 +0000 (16:48 +0200)] 
regress: Add test to scan_string()

2 years agoAdd device function to compute the file_size depending on the device driver
Eric Bollengier [Wed, 17 Aug 2022 07:50:29 +0000 (09:50 +0200)] 
Add device function to compute the file_size depending on the device driver

2 years agoregress: Backup more than one file in maxfilesize-test
Eric Bollengier [Wed, 17 Aug 2022 07:35:17 +0000 (09:35 +0200)] 
regress: Backup more than one file in maxfilesize-test

2 years agoregress: Add btotp -r test case
Eric Bollengier [Thu, 25 Aug 2022 08:32:56 +0000 (10:32 +0200)] 
regress: Add btotp -r test case

2 years agototp: Fix #9445 Add -r option to btotp to remove a key on disk
Eric Bollengier [Wed, 24 Aug 2022 12:59:03 +0000 (14:59 +0200)] 
totp: Fix #9445 Add -r option to btotp to remove a key on disk

2 years agocloud: format exceptions. 1 liner for stderr, full stack for logger
norbert.bizet [Wed, 17 Aug 2022 12:43:55 +0000 (08:43 -0400)] 
cloud: format exceptions. 1 liner for stderr, full stack for logger

2 years agocloud: configure the generic drivers python logger in non-debug mode
norbert.bizet [Wed, 17 Aug 2022 11:53:38 +0000 (07:53 -0400)] 
cloud: configure the generic drivers python logger in non-debug mode

2 years agoFix #9428 About incorrect .volstatus output
Eric Bollengier [Wed, 17 Aug 2022 08:20:49 +0000 (10:20 +0200)] 
Fix #9428 About incorrect .volstatus output

2 years agodbcheck: check Ojbect table for orphan records
Eric Bollengier [Fri, 19 Aug 2022 06:13:34 +0000 (08:13 +0200)] 
dbcheck: check Ojbect table for orphan records

2 years agoFix compilation warning
Eric Bollengier [Wed, 17 Aug 2022 08:05:24 +0000 (10:05 +0200)] 
Fix compilation warning

2 years agoFix errors in update_bacula_tables
Eric Bollengier [Fri, 12 Aug 2022 15:43:03 +0000 (17:43 +0200)] 
Fix errors in update_bacula_tables

2 years agoregress: Schedule bsr-loop-test
Eric Bollengier [Wed, 10 Aug 2022 14:35:35 +0000 (16:35 +0200)] 
regress: Schedule bsr-loop-test

2 years agoFix #9341 split BSR when a volume cycle is detected
Alain Spineux [Thu, 4 Aug 2022 13:06:57 +0000 (15:06 +0200)] 
Fix #9341 split BSR when a volume cycle is detected

2 years agoregress: add bsr-loop-test
Alain Spineux [Mon, 8 Aug 2022 16:04:46 +0000 (18:04 +0200)] 
regress: add bsr-loop-test

2 years agoregress: add lsmark-test
Alain Spineux [Fri, 3 Jun 2022 11:39:08 +0000 (13:39 +0200)] 
regress: add lsmark-test

- test that lsmark show marked files that are in sub-directories and
  shows directory name

2 years agoFix #9209 lsmark don't walk through unselected directory
Alain Spineux [Fri, 3 Jun 2022 09:51:51 +0000 (11:51 +0200)] 
Fix #9209 lsmark don't walk through unselected directory

- this fix explore the tree once and mark all directory
  that old marked file (at any sub level)
- then the lsmark code can display the parent directory
  only if they have marked sub-children

2 years agoFix #9085 Very long jobid list are truncated in copy/migration/virtualfull
Eric Bollengier [Mon, 8 Aug 2022 16:52:44 +0000 (18:52 +0200)] 
Fix #9085 Very long jobid list are truncated in copy/migration/virtualfull

2 years agoAdd multi-line support to sellist
Eric Bollengier [Mon, 8 Aug 2022 14:42:09 +0000 (16:42 +0200)] 
Add multi-line support to sellist

2 years agoAdd variable to size variable with edit_int64()
Eric Bollengier [Tue, 9 Aug 2022 13:39:27 +0000 (15:39 +0200)] 
Add variable to size variable with edit_int64()

2 years agocloud: Fix #9366 type out and err as str rather that bytes
norbert.bizet [Wed, 27 Jul 2022 14:53:39 +0000 (10:53 -0400)] 
cloud: Fix #9366 type out and err as str rather that bytes

2 years agocloud: rename and specialize regress test to check aws StorageClass attribute
norbert.bizet [Wed, 27 Jul 2022 10:05:34 +0000 (06:05 -0400)] 
cloud: rename and specialize regress test to check aws StorageClass attribute

2 years agocloud: Fix aws/amazon regression tests cleanup
norbert.bizet [Tue, 26 Jul 2022 20:19:59 +0000 (16:19 -0400)] 
cloud: Fix aws/amazon regression tests cleanup

2 years agocloud: rename ObjectDefaultTier to StorageClass
norbert.bizet [Tue, 26 Jul 2022 10:46:14 +0000 (06:46 -0400)] 
cloud: rename ObjectDefaultTier to StorageClass

2 years agocloud: object tier passed to generic aws driver
norbert.bizet [Tue, 26 Jul 2022 10:45:34 +0000 (06:45 -0400)] 
cloud: object tier passed to generic aws driver

2 years agocloud: test default object tier
norbert.bizet [Tue, 26 Jul 2022 09:44:58 +0000 (05:44 -0400)] 
cloud: test default object tier

2 years agocloud: introduce a default object tier directive in Cloud
norbert.bizet [Tue, 26 Jul 2022 09:44:24 +0000 (05:44 -0400)] 
cloud: introduce a default object tier directive in Cloud

2 years agoregress: Schedule tests/maxfilesize-test
Eric Bollengier [Wed, 13 Jul 2022 12:26:40 +0000 (14:26 +0200)] 
regress: Schedule tests/maxfilesize-test

2 years agoregress: Add test to check MaximumFileSize directive
Eric Bollengier [Wed, 13 Jul 2022 12:25:38 +0000 (14:25 +0200)] 
regress: Add test to check MaximumFileSize directive

2 years agoFix #9315 Save files if accurate/checksum fileset cannot be verified
Eric Bollengier [Tue, 12 Jul 2022 15:09:47 +0000 (17:09 +0200)] 
Fix #9315 Save files if accurate/checksum fileset cannot be verified

Up to now, if a checksum was not available, the file was marked as
deleted.

2 years agoregress: Schedule new test accurate-only-meta-error-test
Eric Bollengier [Tue, 12 Jul 2022 15:08:22 +0000 (17:08 +0200)] 
regress: Schedule new test accurate-only-meta-error-test

2 years agoregress: Add test to reproduce issue with checksum/accurate configuration problem
Eric Bollengier [Tue, 12 Jul 2022 15:07:41 +0000 (17:07 +0200)] 
regress: Add test to reproduce issue with checksum/accurate configuration problem

2 years agoFix compilation
Eric Bollengier [Tue, 5 Jul 2022 14:06:54 +0000 (16:06 +0200)] 
Fix compilation

2 years agoregress: Schedule two-client-test
Eric Bollengier [Tue, 5 Jul 2022 13:25:56 +0000 (15:25 +0200)] 
regress: Schedule two-client-test

2 years agoregress: Add checks in two-client-test
Eric Bollengier [Tue, 5 Jul 2022 13:24:53 +0000 (15:24 +0200)] 
regress: Add checks in two-client-test

2 years agoFix #9284 About unnecessary warning message with empty filesets
Eric Bollengier [Tue, 5 Jul 2022 13:14:01 +0000 (15:14 +0200)] 
Fix #9284 About unnecessary warning message with empty filesets

The warning message is suitable for Backup, but not really for copy/migration
admin or restore job.

2 years agoFix #9305 At restore time, show wrong Backup Client when modifying client
Alain Spineux [Tue, 5 Jul 2022 10:35:30 +0000 (12:35 +0200)] 
Fix #9305 At restore time, show wrong Backup Client when modifying client

There is two values :
Backup Client: this is related to the backup job, then this is immutable as the job already ran
Restore Client: this is related to the restore, this can change

In a "normal" restore, the values that are assigned are as follow :

Backup Client:  rc.client ? rc.client->hdr.name : jcr->job->client->hdr.name
Restore Client: jcr->client->name()

We can see the values that have changed before and after the "mod"

ua_run.c:173-0 ASX rc.client=0x55af0c0d5aa8 jcr->job->client->hdr.name=1-fd rc.client->hdr.name=1-fd jcr->client->name()=1-fd
ua_run.c:173-0 ASX rc.client=0x55af0c0d7eb8 jcr->job->client->hdr.name=1-fd rc.client->hdr.name=2-fd jcr->client->name()=2-fd

The value jcr->job->client->hdr.name did not change has expected (it should be immutable) and should be used instead of the conditional for the "Backup Client" value

When doing the mod, the code does

      case 4:
         /* Client */
      {
         int32_t jt = rc.job ? rc.job->JobType : JT_SYSTEM;
         rc.client = select_client_resource(ua, jt);
         if (rc.client) {
            jcr->client = rc.client;
            goto try_again;
         }
      }

Then both the rc.client and the jcr->client are modified

I think the right solution is just to use
  jcr->job->client->hdr.name
instead of the conditional
  rc.client ? rc.client->hdr.name : jcr->job->client->hdr.name

2 years agoregress: Add two-client-test to reproduce issue with Restore/Backup Client menu
Eric Bollengier [Wed, 29 Jun 2022 17:01:56 +0000 (19:01 +0200)] 
regress: Add two-client-test to reproduce issue with Restore/Backup Client menu

2 years agoFix #9297 MySQL update script with Client/Plugins filed
Eric Bollengier [Wed, 29 Jun 2022 14:26:32 +0000 (16:26 +0200)] 
Fix #9297 MySQL update script with Client/Plugins filed

2 years agobpipe: run_program_full with error handling
norbert.bizet [Thu, 16 Jun 2022 09:04:52 +0000 (05:04 -0400)] 
bpipe: run_program_full with error handling

2 years agoregress:: fix custom option in simple-test
Alain Spineux [Fri, 3 Jun 2022 10:00:45 +0000 (12:00 +0200)] 
regress:: fix custom option in simple-test

2 years agoRework path 9224 to keep int in the ioctl call
Eric Bollengier [Tue, 7 Jun 2022 15:42:20 +0000 (17:42 +0200)] 
Rework path 9224 to keep int in the ioctl call

2 years agoFix #9224 about Storage Daemon issue with BoostFS
Eric Bollengier [Tue, 7 Jun 2022 14:39:02 +0000 (16:39 +0200)] 
Fix #9224 about Storage Daemon issue with BoostFS

On bootfs, the call to ioctl(tmp_fd, FS_IOC_GETFLAGS, (char *)&get_attr);
triggers an error, and the get_attr variable is not long enough
and the memory in the stack get overwritten leading to a segfault.

The man page is incorrect, a "int" is documented, but a "long"
is actually needed.

2 years agoregress: Adapt plugin-object-test for new test-plugin output
Eric Bollengier [Thu, 2 Jun 2022 18:54:02 +0000 (20:54 +0200)] 
regress: Adapt plugin-object-test for new test-plugin output

2 years agoUse regular LIKE for MySQL and SQLite, use ILIKE for PostgreSQL in .search command
Eric Bollengier [Wed, 1 Jun 2022 15:04:55 +0000 (17:04 +0200)] 
Use regular LIKE for MySQL and SQLite, use ILIKE for PostgreSQL in .search command

The lower() trick doesn't work on MySQL because we use BLOB to store text.
So, we revert to LIKE and ILIKE for PostgreSQL

2 years agoAdd support for PriorJob with VirtualFull to support specific plugins
Eric Bollengier [Wed, 1 Jun 2022 14:54:57 +0000 (16:54 +0200)] 
Add support for PriorJob with VirtualFull to support specific plugins

2 years agoregress: Tweak DartTestfile.txt
Eric Bollengier [Wed, 1 Jun 2022 09:26:59 +0000 (11:26 +0200)] 
regress: Tweak DartTestfile.txt

2 years agoFix accurate query issue introduced by "Update db_get_accurate_jobids() to deal with...
Eric Bollengier [Wed, 1 Jun 2022 07:20:56 +0000 (09:20 +0200)] 
Fix accurate query issue introduced by "Update db_get_accurate_jobids() to deal with one single JobId"

The db_get_accurate_jobids() can return a jobid list that doesn't include
the jobid that was requested. For backup, it's not really a problem, however
for things like restoring an Object, it doesn't work. To be fixed later on.

2 years agoregress: Schedule virtualfull plugin test
Eric Bollengier [Tue, 31 May 2022 15:27:44 +0000 (17:27 +0200)] 
regress: Schedule virtualfull plugin test

2 years agoUpdate db_get_accurate_jobids() to deal with one single JobId
Eric Bollengier [Tue, 31 May 2022 13:26:28 +0000 (15:26 +0200)] 
Update db_get_accurate_jobids() to deal with one single JobId

2 years agoAccept jobid list in "list object" command
Eric Bollengier [Tue, 31 May 2022 09:08:33 +0000 (11:08 +0200)] 
Accept jobid list in "list object" command

2 years agoregress: Enhance virtual full testing functions
Eric Bollengier [Mon, 30 May 2022 09:03:35 +0000 (11:03 +0200)] 
regress: Enhance virtual full testing functions

2 years agoregress: Add test for VirtualFull plugin support
Eric Bollengier [Mon, 30 May 2022 09:00:31 +0000 (11:00 +0200)] 
regress: Add test for VirtualFull plugin support

2 years agoAdd VirtualFull plugin support
Eric Bollengier [Mon, 30 May 2022 08:59:55 +0000 (10:59 +0200)] 
Add VirtualFull plugin support

2 years agoHandle incr/diff jobs in test-plugin-fd.c
Eric Bollengier [Wed, 25 May 2022 20:50:30 +0000 (22:50 +0200)] 
Handle incr/diff jobs in test-plugin-fd.c

2 years agoregress: Add test for PVF with plugins
Eric Bollengier [Fri, 27 May 2022 13:35:33 +0000 (15:35 +0200)] 
regress: Add test for PVF with plugins

2 years agoFix some SQL filters for MySQL
Eric Bollengier [Mon, 23 May 2022 16:45:00 +0000 (18:45 +0200)] 
Fix some SQL filters for MySQL

The ILIKE operator doesn't exist for MySQL. We replace it by lower(a) LIKE ('str')

2 years agoregress: Tweak accurate-only-meta-test
Eric Bollengier [Tue, 17 May 2022 14:34:57 +0000 (16:34 +0200)] 
regress: Tweak accurate-only-meta-test

2 years agoregress: Test ACL restore and multi backup for meta data updates
Eric Bollengier [Tue, 17 May 2022 09:58:18 +0000 (11:58 +0200)] 
regress: Test ACL restore and multi backup for meta data updates

2 years agoregress: modify simple-test to make it more easy for modification
Alain Spineux [Tue, 26 Apr 2022 15:36:43 +0000 (17:36 +0200)] 
regress: modify simple-test to make it more easy for modification

2 years agoDo not reassign catalog objects after a migration
Eric Bollengier [Thu, 12 May 2022 08:39:33 +0000 (10:39 +0200)] 
Do not reassign catalog objects after a migration

The migration/copy process will re-recreate the catalog objects when we see
them on the Media.

2 years agoregress: Add copy-plugin-test
Eric Bollengier [Wed, 11 May 2022 14:52:22 +0000 (16:52 +0200)] 
regress: Add copy-plugin-test

2 years agoregress: Add new tests to CDASH
Eric Bollengier [Wed, 11 May 2022 08:54:33 +0000 (10:54 +0200)] 
regress: Add new tests to CDASH

2 years agoregress: Add test to check objects after a migration
Eric Bollengier [Wed, 11 May 2022 08:50:13 +0000 (10:50 +0200)] 
regress: Add test to check objects after a migration

2 years agoFix "list metadata" command with copy jobs
Eric Bollengier [Wed, 11 May 2022 14:52:44 +0000 (16:52 +0200)] 
Fix "list metadata" command with copy jobs

2 years agoAdd missing copyright headers
norbert.bizet [Wed, 4 May 2022 10:33:44 +0000 (06:33 -0400)] 
Add missing copyright headers

2 years agoA script to detect copyright headers
norbert.bizet [Wed, 4 May 2022 10:32:42 +0000 (06:32 -0400)] 
A script to detect copyright headers

2 years agoregress: Update hdfull-test
Eric Bollengier [Mon, 9 May 2022 16:20:01 +0000 (18:20 +0200)] 
regress: Update hdfull-test

2 years agoAllow small volume poll interval in DEVELOPPER's mode
Eric Bollengier [Mon, 9 May 2022 16:19:30 +0000 (18:19 +0200)] 
Allow small volume poll interval in DEVELOPPER's mode

2 years agoEnsure that the disk space is checked when finding new media
Eric Bollengier [Mon, 9 May 2022 14:23:37 +0000 (16:23 +0200)] 
Ensure that the disk space is checked when finding new media

2 years agocloud: add restore_bucket field to transfer structure.
norbert.bizet [Wed, 4 May 2022 10:14:00 +0000 (06:14 -0400)] 
cloud: add restore_bucket field to transfer structure.

2 years agoregress: Reduce output from migration-jobspan-test
Eric Bollengier [Fri, 6 May 2022 08:11:30 +0000 (10:11 +0200)] 
regress: Reduce output from migration-jobspan-test

2 years agoApply the algorithm in all cases
Eric Bollengier [Fri, 6 May 2022 08:08:25 +0000 (10:08 +0200)] 
Apply the algorithm in all cases

2 years agoTweak store_mngr comments
Eric Bollengier [Thu, 5 May 2022 14:50:50 +0000 (16:50 +0200)] 
Tweak store_mngr comments

2 years agoFix #1868 Make StorageGroup feature compatible with Copy and Migration jobs
Eric Bollengier [Fri, 22 Apr 2022 16:21:25 +0000 (18:21 +0200)] 
Fix #1868 Make StorageGroup feature compatible with Copy and Migration jobs

2 years agoregress: Add test to reproduce migration/copy issue with StorageGroup
Eric Bollengier [Fri, 22 Apr 2022 16:20:02 +0000 (18:20 +0200)] 
regress: Add test to reproduce migration/copy issue with StorageGroup

2 years agoFix small logic issue in msgchan
Eric Bollengier [Fri, 22 Apr 2022 09:27:02 +0000 (11:27 +0200)] 
Fix small logic issue in msgchan

2 years agoregress: fix escaping in "function" file, for json output
Alain Spineux [Wed, 20 Apr 2022 17:52:00 +0000 (19:52 +0200)] 
regress: fix escaping in "function" file, for json output

- "read" handle the escape characters by default, use '-r' to disable
  the handling of escape characters.

2 years agoFix #9035 Sync the Job and JobHisto table when "update stats" is issued
Eric Bollengier [Tue, 12 Apr 2022 16:08:43 +0000 (18:08 +0200)] 
Fix #9035 Sync the Job and JobHisto table when "update stats" is issued

2 years agowindows: change windows os version detection
norbert.bizet [Tue, 12 Apr 2022 11:48:00 +0000 (07:48 -0400)] 
windows: change windows os version detection

2 years agowindows: change windows os version detection
norbert.bizet [Tue, 12 Apr 2022 11:48:00 +0000 (07:48 -0400)] 
windows: change windows os version detection

2 years agoFix #9035 update job statistics
Marcin Haba [Tue, 12 Apr 2022 10:52:23 +0000 (12:52 +0200)] 
Fix #9035 update job statistics

2 years agoedit_uint64_with_suffix() add option to remove the space before the suffix
Alain Spineux [Fri, 4 Feb 2022 15:10:01 +0000 (16:10 +0100)] 
edit_uint64_with_suffix() add option to remove the space before the suffix

- default is with_space=true that don't change the old behavior
- the goal is to have
  used=7.205GB free=32.37GB unused=612.3MB   <=  with_space=false
  instead of
  used=7.205 GB free=32.37 GB unused=612.3 MB  <=  with_space=true

2 years agoaws-cloud-driver: Update the tranfer regress test
norbert.bizet [Thu, 7 Apr 2022 14:37:12 +0000 (10:37 -0400)] 
aws-cloud-driver: Update the tranfer regress test

2 years agoaws-cloud-driver: Support cloud_transfer directives. Fix download
norbert.bizet [Thu, 7 Apr 2022 14:36:13 +0000 (10:36 -0400)] 
aws-cloud-driver: Support cloud_transfer directives. Fix download

2 years agoaws-cloud-driver: Enable cloud_transfer directives for generic_driver
norbert.bizet [Thu, 7 Apr 2022 14:35:01 +0000 (10:35 -0400)] 
aws-cloud-driver: Enable cloud_transfer directives for generic_driver

2 years agocloud: add restore to generic_driver and aws_cloud_driver
norbert.bizet [Thu, 31 Mar 2022 07:03:04 +0000 (03:03 -0400)] 
cloud: add restore to generic_driver and aws_cloud_driver

2 years agoSave memory by not keeping the SQL batch session open during the backup
Eric Bollengier [Thu, 7 Apr 2022 11:46:53 +0000 (13:46 +0200)] 
Save memory by not keeping the SQL batch session open during the backup

2 years agoSend security events after incorrect connexion with SD/DIR
Eric Bollengier [Wed, 6 Apr 2022 12:49:49 +0000 (14:49 +0200)] 
Send security events after incorrect connexion with SD/DIR

2 years agoAdd security event message after incorrect connection to a FD
Eric Bollengier [Wed, 6 Apr 2022 10:26:21 +0000 (12:26 +0200)] 
Add security event message after incorrect connection to a FD

2 years agoFix BSOCKCORE::get_info()
Eric Bollengier [Wed, 6 Apr 2022 10:25:12 +0000 (12:25 +0200)] 
Fix BSOCKCORE::get_info()

2 years agoregress: Schedule new hide-password-test
Eric Bollengier [Thu, 31 Mar 2022 16:21:21 +0000 (18:21 +0200)] 
regress: Schedule new hide-password-test