]>
git.ipfire.org Git - thirdparty/bacula.git/log
Eric Bollengier [Wed, 14 Sep 2022 13:36:36 +0000 (15:36 +0200)]
Add bstrcasestr() for non GNU platforms
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
Eric Bollengier [Fri, 9 Sep 2022 13:03:00 +0000 (15:03 +0200)]
sir: Fix the record number with aligned volume
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)
Eric Bollengier [Fri, 9 Sep 2022 13:03:00 +0000 (15:03 +0200)]
sir: Fix the record number with aligned volume
Eric Bollengier [Fri, 9 Sep 2022 12:59:07 +0000 (14:59 +0200)]
regress: reduce backup-bacula-test output
norbert.bizet [Fri, 9 Sep 2022 12:56:53 +0000 (08:56 -0400)]
cloud: Fix #9419 Avoid abort when truncate() fails
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 :-)
Eric Bollengier [Wed, 7 Sep 2022 09:26:21 +0000 (11:26 +0200)]
Fix #9443 About incorrect management of the STDERR via open_bpipe()
Eric Bollengier [Fri, 2 Sep 2022 14:48:07 +0000 (16:48 +0200)]
regress: Add test to scan_string()
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
Eric Bollengier [Wed, 17 Aug 2022 07:35:17 +0000 (09:35 +0200)]
regress: Backup more than one file in maxfilesize-test
Eric Bollengier [Thu, 25 Aug 2022 08:32:56 +0000 (10:32 +0200)]
regress: Add btotp -r test case
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
norbert.bizet [Wed, 17 Aug 2022 12:43:55 +0000 (08:43 -0400)]
cloud: format exceptions. 1 liner for stderr, full stack for logger
norbert.bizet [Wed, 17 Aug 2022 11:53:38 +0000 (07:53 -0400)]
cloud: configure the generic drivers python logger in non-debug mode
Eric Bollengier [Wed, 17 Aug 2022 08:20:49 +0000 (10:20 +0200)]
Fix #9428 About incorrect .volstatus output
Eric Bollengier [Fri, 19 Aug 2022 06:13:34 +0000 (08:13 +0200)]
dbcheck: check Ojbect table for orphan records
Eric Bollengier [Wed, 17 Aug 2022 08:05:24 +0000 (10:05 +0200)]
Fix compilation warning
Eric Bollengier [Fri, 12 Aug 2022 15:43:03 +0000 (17:43 +0200)]
Fix errors in update_bacula_tables
Eric Bollengier [Wed, 10 Aug 2022 14:35:35 +0000 (16:35 +0200)]
regress: Schedule bsr-loop-test
Alain Spineux [Thu, 4 Aug 2022 13:06:57 +0000 (15:06 +0200)]
Fix #9341 split BSR when a volume cycle is detected
Alain Spineux [Mon, 8 Aug 2022 16:04:46 +0000 (18:04 +0200)]
regress: add bsr-loop-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
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
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
Eric Bollengier [Mon, 8 Aug 2022 14:42:09 +0000 (16:42 +0200)]
Add multi-line support to sellist
Eric Bollengier [Tue, 9 Aug 2022 13:39:27 +0000 (15:39 +0200)]
Add variable to size variable with edit_int64()
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
norbert.bizet [Wed, 27 Jul 2022 10:05:34 +0000 (06:05 -0400)]
cloud: rename and specialize regress test to check aws StorageClass attribute
norbert.bizet [Tue, 26 Jul 2022 20:19:59 +0000 (16:19 -0400)]
cloud: Fix aws/amazon regression tests cleanup
norbert.bizet [Tue, 26 Jul 2022 10:46:14 +0000 (06:46 -0400)]
cloud: rename ObjectDefaultTier to StorageClass
norbert.bizet [Tue, 26 Jul 2022 10:45:34 +0000 (06:45 -0400)]
cloud: object tier passed to generic aws driver
norbert.bizet [Tue, 26 Jul 2022 09:44:58 +0000 (05:44 -0400)]
cloud: test default object tier
norbert.bizet [Tue, 26 Jul 2022 09:44:24 +0000 (05:44 -0400)]
cloud: introduce a default object tier directive in Cloud
Eric Bollengier [Wed, 13 Jul 2022 12:26:40 +0000 (14:26 +0200)]
regress: Schedule tests/maxfilesize-test
Eric Bollengier [Wed, 13 Jul 2022 12:25:38 +0000 (14:25 +0200)]
regress: Add test to check MaximumFileSize directive
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.
Eric Bollengier [Tue, 12 Jul 2022 15:08:22 +0000 (17:08 +0200)]
regress: Schedule new test accurate-only-meta-error-test
Eric Bollengier [Tue, 12 Jul 2022 15:07:41 +0000 (17:07 +0200)]
regress: Add test to reproduce issue with checksum/accurate configuration problem
Eric Bollengier [Tue, 5 Jul 2022 14:06:54 +0000 (16:06 +0200)]
Fix compilation
Eric Bollengier [Tue, 5 Jul 2022 13:25:56 +0000 (15:25 +0200)]
regress: Schedule two-client-test
Eric Bollengier [Tue, 5 Jul 2022 13:24:53 +0000 (15:24 +0200)]
regress: Add checks in two-client-test
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.
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
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
Eric Bollengier [Wed, 29 Jun 2022 14:26:32 +0000 (16:26 +0200)]
Fix #9297 MySQL update script with Client/Plugins filed
norbert.bizet [Thu, 16 Jun 2022 09:04:52 +0000 (05:04 -0400)]
bpipe: run_program_full with error handling
Alain Spineux [Fri, 3 Jun 2022 10:00:45 +0000 (12:00 +0200)]
regress:: fix custom option in simple-test
Eric Bollengier [Tue, 7 Jun 2022 15:42:20 +0000 (17:42 +0200)]
Rework path 9224 to keep int in the ioctl call
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.
Eric Bollengier [Thu, 2 Jun 2022 18:54:02 +0000 (20:54 +0200)]
regress: Adapt plugin-object-test for new test-plugin output
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
Eric Bollengier [Wed, 1 Jun 2022 14:54:57 +0000 (16:54 +0200)]
Add support for PriorJob with VirtualFull to support specific plugins
Eric Bollengier [Wed, 1 Jun 2022 09:26:59 +0000 (11:26 +0200)]
regress: Tweak DartTestfile.txt
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.
Eric Bollengier [Tue, 31 May 2022 15:27:44 +0000 (17:27 +0200)]
regress: Schedule virtualfull plugin test
Eric Bollengier [Tue, 31 May 2022 13:26:28 +0000 (15:26 +0200)]
Update db_get_accurate_jobids() to deal with one single JobId
Eric Bollengier [Tue, 31 May 2022 09:08:33 +0000 (11:08 +0200)]
Accept jobid list in "list object" command
Eric Bollengier [Mon, 30 May 2022 09:03:35 +0000 (11:03 +0200)]
regress: Enhance virtual full testing functions
Eric Bollengier [Mon, 30 May 2022 09:00:31 +0000 (11:00 +0200)]
regress: Add test for VirtualFull plugin support
Eric Bollengier [Mon, 30 May 2022 08:59:55 +0000 (10:59 +0200)]
Add VirtualFull plugin support
Eric Bollengier [Wed, 25 May 2022 20:50:30 +0000 (22:50 +0200)]
Handle incr/diff jobs in test-plugin-fd.c
Eric Bollengier [Fri, 27 May 2022 13:35:33 +0000 (15:35 +0200)]
regress: Add test for PVF with plugins
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')
Eric Bollengier [Tue, 17 May 2022 14:34:57 +0000 (16:34 +0200)]
regress: Tweak accurate-only-meta-test
Eric Bollengier [Tue, 17 May 2022 09:58:18 +0000 (11:58 +0200)]
regress: Test ACL restore and multi backup for meta data updates
Alain Spineux [Tue, 26 Apr 2022 15:36:43 +0000 (17:36 +0200)]
regress: modify simple-test to make it more easy for modification
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.
Eric Bollengier [Wed, 11 May 2022 14:52:22 +0000 (16:52 +0200)]
regress: Add copy-plugin-test
Eric Bollengier [Wed, 11 May 2022 08:54:33 +0000 (10:54 +0200)]
regress: Add new tests to CDASH
Eric Bollengier [Wed, 11 May 2022 08:50:13 +0000 (10:50 +0200)]
regress: Add test to check objects after a migration
Eric Bollengier [Wed, 11 May 2022 14:52:44 +0000 (16:52 +0200)]
Fix "list metadata" command with copy jobs
norbert.bizet [Wed, 4 May 2022 10:33:44 +0000 (06:33 -0400)]
Add missing copyright headers
norbert.bizet [Wed, 4 May 2022 10:32:42 +0000 (06:32 -0400)]
A script to detect copyright headers
Eric Bollengier [Mon, 9 May 2022 16:20:01 +0000 (18:20 +0200)]
regress: Update hdfull-test
Eric Bollengier [Mon, 9 May 2022 16:19:30 +0000 (18:19 +0200)]
Allow small volume poll interval in DEVELOPPER's mode
Eric Bollengier [Mon, 9 May 2022 14:23:37 +0000 (16:23 +0200)]
Ensure that the disk space is checked when finding new media
norbert.bizet [Wed, 4 May 2022 10:14:00 +0000 (06:14 -0400)]
cloud: add restore_bucket field to transfer structure.
Eric Bollengier [Fri, 6 May 2022 08:11:30 +0000 (10:11 +0200)]
regress: Reduce output from migration-jobspan-test
Eric Bollengier [Fri, 6 May 2022 08:08:25 +0000 (10:08 +0200)]
Apply the algorithm in all cases
Eric Bollengier [Thu, 5 May 2022 14:50:50 +0000 (16:50 +0200)]
Tweak store_mngr comments
Eric Bollengier [Fri, 22 Apr 2022 16:21:25 +0000 (18:21 +0200)]
Fix #1868 Make StorageGroup feature compatible with Copy and Migration jobs
Eric Bollengier [Fri, 22 Apr 2022 16:20:02 +0000 (18:20 +0200)]
regress: Add test to reproduce migration/copy issue with StorageGroup
Eric Bollengier [Fri, 22 Apr 2022 09:27:02 +0000 (11:27 +0200)]
Fix small logic issue in msgchan
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.
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
norbert.bizet [Tue, 12 Apr 2022 11:48:00 +0000 (07:48 -0400)]
windows: change windows os version detection
norbert.bizet [Tue, 12 Apr 2022 11:48:00 +0000 (07:48 -0400)]
windows: change windows os version detection
Marcin Haba [Tue, 12 Apr 2022 10:52:23 +0000 (12:52 +0200)]
Fix #9035 update job statistics
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
norbert.bizet [Thu, 7 Apr 2022 14:37:12 +0000 (10:37 -0400)]
aws-cloud-driver: Update the tranfer regress test
norbert.bizet [Thu, 7 Apr 2022 14:36:13 +0000 (10:36 -0400)]
aws-cloud-driver: Support cloud_transfer directives. Fix download
norbert.bizet [Thu, 7 Apr 2022 14:35:01 +0000 (10:35 -0400)]
aws-cloud-driver: Enable cloud_transfer directives for generic_driver
norbert.bizet [Thu, 31 Mar 2022 07:03:04 +0000 (03:03 -0400)]
cloud: add restore to generic_driver and aws_cloud_driver
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
Eric Bollengier [Wed, 6 Apr 2022 12:49:49 +0000 (14:49 +0200)]
Send security events after incorrect connexion with SD/DIR
Eric Bollengier [Wed, 6 Apr 2022 10:26:21 +0000 (12:26 +0200)]
Add security event message after incorrect connection to a FD
Eric Bollengier [Wed, 6 Apr 2022 10:25:12 +0000 (12:25 +0200)]
Fix BSOCKCORE::get_info()
Eric Bollengier [Thu, 31 Mar 2022 16:21:21 +0000 (18:21 +0200)]
regress: Schedule new hide-password-test