]> git.ipfire.org Git - thirdparty/bacula.git/log
thirdparty/bacula.git
2 years agoUpdate device initialization error code
Eric Bollengier [Fri, 18 Nov 2022 12:57:55 +0000 (13:57 +0100)] 
Update device initialization error code

2 years agoregress: Add test to check the volume encryption key errors
Eric Bollengier [Tue, 15 Nov 2022 08:23:45 +0000 (09:23 +0100)] 
regress: Add test to check the volume encryption key errors

2 years agoRemove unneeded call to gettext()
Eric Bollengier [Mon, 14 Nov 2022 16:08:23 +0000 (17:08 +0100)] 
Remove unneeded call to gettext()

2 years agoAdd missing error message after incorrect TLS setup
Eric Bollengier [Mon, 14 Nov 2022 15:51:26 +0000 (16:51 +0100)] 
Add missing error message after incorrect TLS setup

2 years agoinitialize encrypted volume when recycling with rewrite_volume_label()
Alain Spineux [Fri, 18 Nov 2022 15:30:42 +0000 (16:30 +0100)] 
initialize encrypted volume when recycling with rewrite_volume_label()

2 years agobscan: update the VolEncrypted state in the catalog
Alain Spineux [Fri, 18 Nov 2022 15:28:56 +0000 (16:28 +0100)] 
bscan: update the VolEncrypted state in the catalog

2 years agouse VolEncrypted in find_next_volume() only for Volume in 'Append'
Alain Spineux [Fri, 18 Nov 2022 15:28:19 +0000 (16:28 +0100)] 
use VolEncrypted in find_next_volume() only for Volume in 'Append'

2 years agosqlite3: use AUTOINCREMENT for JobId to avoid reuse of old jobid when purging
Alain Spineux [Fri, 18 Nov 2022 15:26:57 +0000 (16:26 +0100)] 
sqlite3: use AUTOINCREMENT for JobId to avoid reuse of old jobid when purging

2 years agoBB03 recycle continuity
Alain Spineux [Fri, 18 Nov 2022 09:44:20 +0000 (10:44 +0100)] 
BB03 recycle continuity

2 years agoFix VolEncrypted in get_scratch_volume()
Alain Spineux [Tue, 15 Nov 2022 15:11:41 +0000 (16:11 +0100)] 
Fix VolEncrypted in get_scratch_volume()

- get_scratch_volume() was not using the right VolEncrypted value for
  the SQL query
- this fix tests :
failed   651s  tests/copy-uncopied-test
failed   651s  tests/copy-volume-test
failed   651s  tests/next-vol-test
failed    69s  tests/verify-data-test
failed   651s  tests/scratchpool-pool-test

2 years agotweak messages and dmsg for vol encryption
Alain Spineux [Tue, 15 Nov 2022 14:02:58 +0000 (15:02 +0100)] 
tweak messages and dmsg for vol encryption

- fix Dmsg(0,
- from \"load Volume %s\" to  Volume \"%s\"
- add the "operation" in the error message

2 years agoFix update_mysql_tables for MODIFY vs ADD for Protected & VolEncrypted
Alain Spineux [Tue, 8 Nov 2022 09:34:27 +0000 (10:34 +0100)] 
Fix update_mysql_tables for MODIFY vs ADD for Protected & VolEncrypted

2 years agoAdd VolumeEncrypted field to the catalog
Alain Spineux [Mon, 7 Nov 2022 11:07:18 +0000 (12:07 +0100)] 
Add VolumeEncrypted field to the catalog

- the goal is to not append encrypted data to volumes that that are not
  encryption ready ( that are BB02 or have not been label with an
  "encrypted" capable label )

2 years agoreactivate the 64bits XXHASH checksum in the block
Alain Spineux [Mon, 7 Nov 2022 11:02:39 +0000 (12:02 +0100)] 
reactivate the 64bits XXHASH checksum in the block

- the code was deactivated by mistake (to try to compile on windows)

2 years agofix .bvfs_lsfile SQL query for mysql and sqlite3
Alain Spineux [Wed, 16 Nov 2022 10:41:41 +0000 (11:41 +0100)] 
fix .bvfs_lsfile SQL query for mysql and sqlite3

- got no such column: T.DeltaSeq in sqlite3 in tests/next-vol-test,
  copy-uncopied-test, copy-volume-test & scratchpool-pool-test

2 years agofix bsys path split
norbert.bizet [Tue, 15 Nov 2022 09:43:11 +0000 (04:43 -0500)] 
fix bsys path split

2 years agoFix compilation without TLS
Eric Bollengier [Mon, 14 Nov 2022 08:11:24 +0000 (09:11 +0100)] 
Fix compilation without TLS

2 years agoFix error message after connect() in filed and stored
Eric Bollengier [Fri, 11 Nov 2022 14:49:40 +0000 (15:49 +0100)] 
Fix error message after connect() in filed and stored

2 years agoregress: Add checks for the storage daemon to network-error-test
Eric Bollengier [Fri, 11 Nov 2022 14:18:34 +0000 (15:18 +0100)] 
regress: Add checks for the storage daemon to network-error-test

2 years agoEnhance the network error reporting with between the Director and the File/SD
Eric Bollengier [Fri, 11 Nov 2022 09:46:00 +0000 (10:46 +0100)] 
Enhance the network error reporting with between the Director and the File/SD

2 years agoregress: Schedule network-error-test
Eric Bollengier [Thu, 10 Nov 2022 14:19:29 +0000 (15:19 +0100)] 
regress: Schedule network-error-test

2 years agoregress: Add test to compare connection errors
Eric Bollengier [Thu, 10 Nov 2022 13:50:23 +0000 (14:50 +0100)] 
regress: Add test to compare connection errors

2 years agoImprove the bsock network errors display
Eric Bollengier [Tue, 8 Nov 2022 10:30:59 +0000 (11:30 +0100)] 
Improve the bsock network errors display

 - Put [error] codes in many messages
 - Do not print error messages inside the BSOCK::connect/open calls
 - Print error messages after a connect() depending of the context (UA/jcr)
 - Network messages should not end up in JobId 0
 - Fix incorrect socket usage after a console command error

2 years agoFix typo in update_postgresql_tables_1225_to_1026.in
Eric Bollengier [Fri, 11 Nov 2022 09:52:47 +0000 (10:52 +0100)] 
Fix typo in update_postgresql_tables_1225_to_1026.in

2 years agoStore verified JobId/Job name inside PriorJob and PriorJobId Verify job
Eric Bollengier [Thu, 10 Nov 2022 15:13:14 +0000 (16:13 +0100)] 
Store verified JobId/Job name inside PriorJob and PriorJobId Verify job

2 years agoRename Protect to Protected
Eric Bollengier [Fri, 4 Nov 2022 10:25:30 +0000 (11:25 +0100)] 
Rename Protect to Protected

2 years agoInitialize Protect when creating a new media
Eric Bollengier [Fri, 4 Nov 2022 10:17:44 +0000 (11:17 +0100)] 
Initialize Protect when creating a new media

2 years agoStay in non-blocking state for the entire TLS connection
Eric Bollengier [Fri, 4 Nov 2022 08:08:40 +0000 (09:08 +0100)] 
Stay in non-blocking state for the entire TLS connection

2 years agoModify the help command to display only available commands
Eric Bollengier [Wed, 2 Nov 2022 16:20:13 +0000 (17:20 +0100)] 
Modify the help command to display only available commands

2 years agoregress: Add test for status dir schedule output
Eric Bollengier [Mon, 31 Oct 2022 14:54:41 +0000 (15:54 +0100)] 
regress: Add test for status dir schedule output

2 years agoLimit the 'status dir' scheduled job list to 50 jobs
Eric Bollengier [Mon, 31 Oct 2022 14:54:05 +0000 (15:54 +0100)] 
Limit the 'status dir' scheduled job list to 50 jobs

2 years agoAdd set_limit_offset() to OutputWriter groups
Eric Bollengier [Mon, 31 Oct 2022 14:52:13 +0000 (15:52 +0100)] 
Add set_limit_offset() to OutputWriter groups

2 years agoEnhance the output of status director with large job list
Eric Bollengier [Fri, 28 Oct 2022 09:53:32 +0000 (11:53 +0200)] 
Enhance the output of status director with large job list

2 years agoregress: Add fast option for pg_backup_start()
Eric Bollengier [Fri, 28 Oct 2022 07:42:26 +0000 (09:42 +0200)] 
regress: Add fast option for pg_backup_start()

2 years agoAdd status director scheduled 'novolume' option
Eric Bollengier [Thu, 27 Oct 2022 09:52:05 +0000 (11:52 +0200)] 
Add status director scheduled 'novolume' option

2 years agoTranslate some error messages in file_dev.c
Eric Bollengier [Wed, 26 Oct 2022 08:37:19 +0000 (10:37 +0200)] 
Translate some error messages in file_dev.c

2 years agoFix warning in findlib/fstype.c
Eric Bollengier [Wed, 26 Oct 2022 06:58:47 +0000 (08:58 +0200)] 
Fix warning in findlib/fstype.c

2 years agoUpdate Dmsg() to not modify the errno during a call
Eric Bollengier [Wed, 26 Oct 2022 06:55:53 +0000 (08:55 +0200)] 
Update Dmsg() to not modify the errno during a call

2 years agoAdd tools to synchronize Read-Only/Immutable flags with the Storage Daemon
Eric Bollengier [Tue, 13 Sep 2022 15:42:51 +0000 (17:42 +0200)] 
Add tools to synchronize Read-Only/Immutable flags with the Storage Daemon

 - Change the interface of the immutable functions to not modify the device
 - Add Protect fields to the catalog and the SD/DIR protocol

2 years agoregress: Adapt immutable and read-only test
Eric Bollengier [Tue, 25 Oct 2022 07:46:52 +0000 (09:46 +0200)] 
regress: Adapt immutable and read-only test

2 years agoFix #9563 Inherit JobDefs tags
Eric Bollengier [Mon, 24 Oct 2022 09:14:34 +0000 (11:14 +0200)] 
Fix #9563 Inherit JobDefs tags

2 years agoregress: Add test for JobDefs-Job tag
Eric Bollengier [Mon, 24 Oct 2022 09:13:19 +0000 (11:13 +0200)] 
regress: Add test for JobDefs-Job tag

2 years agoregress: cleanup bin/keydir
Alain Spineux [Tue, 25 Oct 2022 10:03:40 +0000 (12:03 +0200)] 
regress: cleanup bin/keydir

2 years agofix key-manager.py: don't delete old volume's keyfile
Alain Spineux [Tue, 25 Oct 2022 08:06:32 +0000 (10:06 +0200)] 
fix key-manager.py: don't delete old volume's keyfile

- fix an error in the logging
- don't show cipher key in the logging

2 years agoregress: rename BlockEncrytion into VolumeEncryption
Alain Spineux [Mon, 24 Oct 2022 12:56:04 +0000 (14:56 +0200)] 
regress: rename BlockEncrytion into VolumeEncryption

2 years agoVolEnc: rename BlockEncrytion into VolumeEncryption
Alain Spineux [Mon, 24 Oct 2022 12:55:15 +0000 (14:55 +0200)] 
VolEnc: rename BlockEncrytion into VolumeEncryption

2 years agoFix sqlite query error in VF
Alain Spineux [Fri, 12 Aug 2022 09:45:13 +0000 (11:45 +0200)] 
Fix sqlite query error in VF

- this fix don't modify the pgsql nor the mysql query, ONLY the sqlite
  query, is modified. The code is duplicated and modified ONLY for sqlite,
- fix the "UNION": syntax error that come when running a VF
- the fix just remove the () and a useless "order by"
- I think this query could be used for pgsql & mysql too.
- tests/virtual-backup-test

12-Aug 11:38 127.0.0.1-dir JobId 8: Error: Query failed: SELECT Path, Filename, FileIndex, JobId, LStat, DeltaSeq     , JobTDate FROM ((SELECT Path.Path, T1.Filename, T1.FileIndex, T1.JobId, LStat, DeltaSeq     , JobTDate FROM ( SELECT FileId, Job.JobId AS JobId, FileIndex, File.PathId AS PathId,File.Filename AS Filename, LStat     , File.DeltaSeq AS DeltaSeq,Job.JobTDate AS JobTDate FROM Job, File, (SELECT MAX(JobTDate) AS JobTDate, PathId, Filename, DeltaSeq FROM (SELECT JobTDate, PathId, Filename, DeltaSeq FROM File JOIN Job USING (JobId) WHERE File.JobId IN (1,2,3,4,5,6) UNION ALL SELECT JobTDate, PathId, Filename, DeltaSeq FROM BaseFiles JOIN File USING (FileId) JOIN Job  ON    (BaseJobId = Job.JobId) WHERE BaseFiles.JobId IN (1,2,3,4,5,6) ) AS tmp GROUP BY PathId, Filename, DeltaSeq ) AS T1 WHERE (Job.JobId IN ( SELECT DISTINCT BaseJobId FROM BaseFiles WHERE JobId IN (1,2,3,4,5,6)) OR Job.JobId IN (1,2,3,4,5,6)) AND T1.JobTDate = Job.JobTDate AND Job.JobId = File.JobId AND T1.PathId = File.PathId AND T1.Filename = File.Filename ) AS T1 JOIN Path ON (Path.PathId = T1.PathId) WHERE FileIndex > 0 ) UNION (SELECT ObjectName AS Path, PluginName AS Filename, FileIndex, JobId, '' AS LStat, 0 AS DeltaSeq           , JobTDate FROM Job JOIN RestoreObject USING (JobId) WHERE JobId IN (1,2,3,4,5,6) ORDER BY JobTDate ASC, FileIndex ASC)  ) AS U1 ORDER BY JobTDate, FileIndex ASC: ERR=near "UNION": syntax error

2 years agoFix compilation without openssl/encryption
Eric Bollengier [Thu, 20 Oct 2022 16:38:01 +0000 (18:38 +0200)] 
Fix compilation without openssl/encryption

2 years agoregress: tweak async & asyncregress.sh to exclude core and .gdb_history
Alain Spineux [Thu, 20 Oct 2022 13:55:34 +0000 (15:55 +0200)] 
regress: tweak async & asyncregress.sh to exclude core and .gdb_history

2 years agoFix warnings in base64
Eric Bollengier [Mon, 17 Oct 2022 07:26:45 +0000 (09:26 +0200)] 
Fix warnings in base64

2 years agofix XXH3_64bits() not exported by bacula.dll in 64bits
Alain Spineux [Thu, 20 Oct 2022 10:09:51 +0000 (12:09 +0200)] 
fix XXH3_64bits() not exported by bacula.dll in 64bits

2 years agoregress: force SDEnc to NULL for verify-data-test
Alain Spineux [Wed, 21 Sep 2022 11:42:01 +0000 (13:42 +0200)] 
regress: force SDEnc to NULL for verify-data-test

- sed can still works with NULL encryption

2 years agoadd the script key-manager.py
Alain Spineux [Thu, 13 Oct 2022 09:52:05 +0000 (11:52 +0200)] 
add the script key-manager.py

- environment variables are used to pass parameter to the script
- NULL cipher for testing only

2 years agoregress: support new FORCE_SDENC and key-manager script
Alain Spineux [Thu, 6 Oct 2022 11:15:27 +0000 (13:15 +0200)] 
regress: support new FORCE_SDENC and key-manager script

- use a shell wrapper to call key-manager.py, because the
  Bacula's directive are limited to 128 chars

2 years agoregress: modify arun to run a test with all possible XPARAM values
Alain Spineux [Thu, 4 Aug 2022 12:55:14 +0000 (14:55 +0200)] 
regress: modify arun to run a test with all possible XPARAM values

Using the option --xparam will run tests/copy-job-test 27 times
with every SPOOLDATA_JOB, SPOOLDATA_RUN, NEXT_NODEDUP possible values:

$ grep XPARAM tests/copy-job-test
tests/copy-job-test:# XPARAM SPOOLDATA_JOB=(default|yes|no)
tests/copy-job-test:# XPARAM SPOOLDATA_RUN=(default|yes|no)
tests/copy-job-test:# XPARAM NEXT_NODEDUP=(default|yes|no)

2 years agoNew BB03 volume format: volume encryption & new 64bits checksum
Alain Spineux [Thu, 6 Oct 2022 12:16:41 +0000 (14:16 +0200)] 
New BB03 volume format: volume encryption & new 64bits checksum

- this is a 64bits XXHASH64 check that replace the 32bits
- The old crc32 location is used for a "block option" bit field
- use the block header option bit field to store information about
  - if block checksum (XXH64) is used
  - encryption is used
  - if "this" block is encrypted (volume label are not)
- add encryption_command
- use the BlockNum for the IV
- new SD->Device->BlockEncryption directive to enable encryption
- the xxhas64 is in one block at the end of the header
- add documentation
- add a unittest for block_crypto, to show how to use it and do some basic
  encrypte/decrypte
- 2 options bit in the block header
    - BLKHOPT_ENCRYPT_VOL if the volume is encrypter
    - BLKHOPT_ENCRYPT_BLOCK if THIS block is encrypted
- bsdjson can display the encryption type
- high level protocol between the sd_encryption_script and the SD
  - use ENV to send the data
  - use stdout/stdin to read the answere from the keymanager
  - handle error reported by the script
- obfuscate data in the volume when needed (BlockEncryption = STRONG)
- support data spooling (don't encode data in the spool)
- support %V in edit_device_codes() but not used anymore, use environment
  instead
- add support for a master key (store encoded version of the encryption key
  and the key id of the masterkey)
- DEVICE::load_encryption_key() that call the keymanager
- Add new fields to volume label : EncCipherKey[Size] & MasterKeyId[Size]
- add int DEV_RECORD::BlockVer to know the volume version, in case we decode
  the volume header and its extra fields
- add the NULL cipher only for testing purpose
- the XXHASH is always there in the block header event when not used (set to 0)
- the block header has a constant length

# Conflicts:
# bacula/src/stored/stored_conf.h

2 years agoNew Block crypto functions and types for Volume encryption
Alain Spineux [Thu, 5 May 2022 08:49:00 +0000 (10:49 +0200)] 
New Block crypto functions and types for Volume encryption

- encapsulate openssl API
- include a unittest to show how to use and test it

2 years agoadd support for new file signature in the xxhash family
Alain Spineux [Mon, 22 Nov 2021 12:50:13 +0000 (13:50 +0100)] 
add support for new file signature in the xxhash family

- XXHASH64 fast 64bits signature
- XXH3_64  a bit faster 64bits signature
- XXH3_128 a even faster 128bits signature

2 years agoAdd xxhash files for new signatures and block checksum
Alain Spineux [Fri, 26 Nov 2021 10:46:34 +0000 (11:46 +0100)] 
Add xxhash files for new signatures and block checksum

2 years agonew bin_to_base64_pad() that encode into base64 with padding
Alain Spineux [Wed, 21 Sep 2022 11:18:06 +0000 (13:18 +0200)] 
new bin_to_base64_pad() that encode into base64 with padding

2 years agoFix wrong length returned by base64_to_bin(), rewrite the function
Alain Spineux [Tue, 2 Aug 2022 11:51:33 +0000 (13:51 +0200)] 
Fix wrong length returned by base64_to_bin(), rewrite the function

- base64_to_bin() was handling the '=' padding char as data,
  making the output longer when padding was used.
- If you had no padding, this was ok
- Or if you were knowing the length of the output to cut it at the right
  length this was ok too
- The output buffer had to be a little longer too
- The function base64_init() has been removed and 'base64_map' is
  initialized with a static table
- The function has been rewritten
  - ignore spaces in the input (space, tab, newline), can be a multi-line input
  - stop when a '\0', a '=' (padding) or srclen depending what is hit first
  - return 0 when the output string is too short or invalid char are fount
    in the output
  - dest_size don't need to be bigger, the exact length is ok
  - the output string is not ended with '\0', has it is supposed to be binary data
- The other usage of base64_to_bin() in the code have been fixed when needed
- Add plenty of test
==== Starting base64_test ... ====
OK  test bin_to_base64
OK  test bin_to_base64 content
OK  test base64_to_bin
OK  test base64_to_bin content
OK  test base64 encode decode for multiple lengths
OK  test base64 decode base64 with multiple spaces
OK  test base64 buffer too small 1
OK  test base64 buffer too small 2
OK  test base64 padding YQ==
OK  test base64 padding YQ=
OK  test base64 padding YQ
OK  test base64 padding YQ==
OK  test base64 padding YQ=
OK  test base64 padding YQ
OK  test base64 truncated padding YQ== 3
OK  test base64 truncated padding YQ== 2
OK  test base64 invalid char 1
OK  test base64 invalid char 2
OK  test base64 invalid char 3
OK  test base64 invalid char after the padding
OK  Checking bin_to_base64 encoded length
OK  Checking bin_to_base64 encoded data
OK  Checking base64_to_bin decoded length
OK  Checking base64_to_bin decoded data
OK  Checking base64_to_bin decoded length - encoded
OK  Checking base64_to_bin decoded data - encoded
OK  Checking to_base64 encode length
OK  Checking to_base64 encoded data
OK  Checking from_base64 decoded data
OK  Checking from_base64 decoded length
OK  Checking from_base64 decoded data - encoded
OK  Checking from_base64 decoded length - encoded

==== Report ====
Result 32/32 OK

2 years agotweak remove wrong definition of ser_block_header() from proto.h
Alain Spineux [Tue, 1 Mar 2022 13:37:39 +0000 (14:37 +0100)] 
tweak remove wrong definition of ser_block_header() from proto.h

- the definition of ser_block_header in proto.h is wrong
void ser_block_header(DEV_BLOCK *block);
- the right one is
uint32_t ser_block_header(DEV_BLOCK *block, bool do_checksum)
- the definition in proto.h is never used

2 years agoAdd ser_skip() and ser_set() to serialisation functions
Alain Spineux [Wed, 5 Oct 2022 13:15:21 +0000 (15:15 +0200)] 
Add ser_skip() and ser_set() to serialisation functions

- ser_skip() skip some bytes without writing anything
- ser_set() works like memset()

2 years agoremove unused DEV_BLOCK::ser_buf
Alain Spineux [Thu, 6 Oct 2022 12:16:11 +0000 (14:16 +0200)] 
remove unused DEV_BLOCK::ser_buf

# Conflicts:
# bacula/src/stored/block.h

2 years agoAdd Protect fields to the catalog and the SD/DIR protocol
Eric Bollengier [Tue, 13 Sep 2022 15:42:51 +0000 (17:42 +0200)] 
Add Protect fields to the catalog and the SD/DIR protocol

2 years agoAdd Storage Daemon SetReadOnly directive
Eric Bollengier [Mon, 10 Oct 2022 10:13:57 +0000 (12:13 +0200)] 
Add Storage Daemon SetReadOnly directive

2 years agoAdd %V as a variant of %v in edit_device_codes()
Alain Spineux [Fri, 14 Oct 2022 02:57:08 +0000 (04:57 +0200)] 
Add %V as a variant of %v in edit_device_codes()

2 years agoModify .status dir running to return the output as a flow
Eric Bollengier [Thu, 13 Oct 2022 16:05:05 +0000 (18:05 +0200)] 
Modify .status dir running to return the output as a flow

2 years agocloud: remove useless edit_device_codes function
norbert.bizet [Wed, 12 Oct 2022 15:44:45 +0000 (11:44 -0400)] 
cloud: remove useless edit_device_codes function

2 years agoConvert MySQL TinyBlob to BLOB for some Object table members
Eric Bollengier [Thu, 6 Oct 2022 07:58:31 +0000 (09:58 +0200)] 
Convert MySQL TinyBlob to BLOB for some Object table members

2 years agoTweak debug levels for CDP
Eric Bollengier [Tue, 11 Oct 2022 20:10:12 +0000 (22:10 +0200)] 
Tweak debug levels for CDP

2 years agoTweak debug messages
Eric Bollengier [Tue, 11 Oct 2022 19:57:09 +0000 (21:57 +0200)] 
Tweak debug messages

2 years agoFix warnings reported by cppcheck
Eric Bollengier [Wed, 5 Oct 2022 13:06:06 +0000 (15:06 +0200)] 
Fix warnings reported by cppcheck

 - shadows outer variable in stored/ansi_label.c
 - Fix variable initialization warning in prepare.h
 - Fix warning in stored/autochanger.c
 - Fix warning in console/console.c

2 years agopluginlib: Move the new variables in the JobInfo phase
Eric Bollengier [Mon, 10 Oct 2022 13:56:03 +0000 (15:56 +0200)] 
pluginlib: Move the new variables in the JobInfo phase

2 years agoAdd --enable-check-dmsg option to ./configure
Eric Bollengier [Thu, 6 Oct 2022 12:59:47 +0000 (14:59 +0200)] 
Add --enable-check-dmsg option to ./configure

2 years agoFix windows build
Eric Bollengier [Mon, 10 Oct 2022 10:30:35 +0000 (12:30 +0200)] 
Fix windows build

2 years agoAdd bVarSysConfigPath for plugins
Eric Bollengier [Tue, 4 Oct 2022 14:24:00 +0000 (16:24 +0200)] 
Add bVarSysConfigPath for plugins

2 years agofix JobHisto field typo from ReadDevice to LastReadDevice and a missing space
Alain Spineux [Fri, 7 Oct 2022 12:23:34 +0000 (14:23 +0200)] 
fix JobHisto field typo from ReadDevice to LastReadDevice and a missing space

- tests/stats-test was failing

2 years agofix sqlite3 make table Error: near line 254: near ")": syntax error
Alain Spineux [Fri, 7 Oct 2022 10:37:06 +0000 (12:37 +0200)] 
fix sqlite3 make table Error: near line 254: near ")": syntax error

- one ',' too much

2 years agoregress: tweak bin/true -> true into copy-job-test
Alain Spineux [Wed, 5 Oct 2022 13:31:10 +0000 (15:31 +0200)] 
regress: tweak bin/true -> true into copy-job-test

2 years agoAdd Tenant resource
Eric Bollengier [Fri, 16 Sep 2022 08:09:39 +0000 (10:09 +0200)] 
Add Tenant resource

2 years agoAdd Worm/UseWorm to MySQL and adapt SQLite
Eric Bollengier [Mon, 3 Oct 2022 08:24:25 +0000 (10:24 +0200)] 
Add Worm/UseWorm to MySQL and adapt SQLite

2 years agoAdapt JobHisto procedure for new Job fields
Eric Bollengier [Mon, 3 Oct 2022 08:24:04 +0000 (10:24 +0200)] 
Adapt JobHisto procedure for new Job fields

2 years agoAdd Worm/IsWorm to Media table
Eric Bollengier [Mon, 3 Oct 2022 08:14:27 +0000 (10:14 +0200)] 
Add Worm/IsWorm to Media table

2 years agocreate update_mysql_tables for 1026
Eric Bollengier [Mon, 3 Oct 2022 08:14:00 +0000 (10:14 +0200)] 
create update_mysql_tables for 1026

2 years agoSend progress information for Migration and Copy Jobs
Eric Bollengier [Thu, 29 Sep 2022 08:22:14 +0000 (10:22 +0200)] 
Send progress information for Migration and Copy Jobs

2 years agocats: Update postgresql upgrade procedure
Eric Bollengier [Fri, 30 Sep 2022 18:57:11 +0000 (20:57 +0200)] 
cats: Update postgresql upgrade procedure

2 years agoFix MySQL make script
Eric Bollengier [Fri, 30 Sep 2022 06:26:27 +0000 (08:26 +0200)] 
Fix MySQL make script

2 years agoupdate mysql updatedb script
Eric Bollengier [Fri, 30 Sep 2022 06:23:58 +0000 (08:23 +0200)] 
update mysql updatedb script

2 years agobvfs: Add VolType to .bvfs_versions
Eric Bollengier [Fri, 30 Sep 2022 06:11:35 +0000 (08:11 +0200)] 
bvfs: Add VolType to .bvfs_versions

2 years agocats: Adjust MySQL update scripts
Eric Bollengier [Thu, 29 Sep 2022 08:10:38 +0000 (10:10 +0200)] 
cats: Adjust MySQL update scripts

2 years agoinventory-fd: b_uname
norbert.bizet [Fri, 16 Sep 2022 11:27:23 +0000 (07:27 -0400)] 
inventory-fd: b_uname

2 years agoregress: add a crypto-unittest
Alain Spineux [Mon, 19 Sep 2022 12:19:11 +0000 (14:19 +0200)] 
regress: add a crypto-unittest

- the main goal is to learn how the use the crypt_* function
- for now test only signature part

2 years agoEnhance .bvfs_ls_files() to support VirtualFull
Eric Bollengier [Tue, 20 Sep 2022 08:39:38 +0000 (10:39 +0200)] 
Enhance .bvfs_ls_files() to support VirtualFull

In one Job, a single file can have multiple instances with delta_seq != 0.
We modify the queries to find the higest DeltaSeq for a file and return
the correct FileId.

2 years agoOptimize the split of the BSR
Alain Spineux [Thu, 11 Aug 2022 12:11:32 +0000 (14:11 +0200)] 
Optimize the split of the BSR

- When the BSR is split there is no need to remember for the volumes that
  are in the previous part.
- Read the BSR in one pass and resetting the list of volumes is difficult
  as we do the split in hindsight.
- Instead of modifying the list we remember when a volume has been
  seen for the last time (the job_num) and to know if a volume matter
  we compare it with the last_split_job_num that is the first job_num
  of the list

2 years agoregress: add more check to bsr-loop-test
Alain Spineux [Thu, 11 Aug 2022 12:04:56 +0000 (14:04 +0200)] 
regress: add more check to bsr-loop-test

- check the number of session with the SD
- check the number of mount of a volume

2 years agoantivirus: Generate FileEvents when a virus is detected
Eric Bollengier [Tue, 13 Sep 2022 13:01:57 +0000 (15:01 +0200)] 
antivirus: Generate FileEvents when a virus is detected

2 years agoregress: Test new FileEvent list
Eric Bollengier [Tue, 13 Sep 2022 13:00:47 +0000 (15:00 +0200)] 
regress: Test new FileEvent list

2 years agoFix small memory leak when starting a job with PluginOptions
Eric Bollengier [Tue, 13 Sep 2022 07:52:00 +0000 (09:52 +0200)] 
Fix small memory leak when starting a job with PluginOptions

2 years agoregress: Adapt plugin-test for fileevents
Eric Bollengier [Fri, 9 Sep 2022 16:21:30 +0000 (18:21 +0200)] 
regress: Adapt plugin-test for fileevents