]> git.ipfire.org Git - thirdparty/bacula.git/log
thirdparty/bacula.git
2 years agopluginlib: Update metplugin to support PluginObj status.
Radosław Korzeniewski [Thu, 25 Nov 2021 07:49:19 +0000 (08:49 +0100)] 
pluginlib: Update metplugin to support PluginObj status.

This patch extend Metaplugin protocol for PluginObj
support with a new command: PLUGINOBJ_STATUS
This command takes a single argument and fill the
sp->plugin_obj.status variable as:
"OK" - PLUG_OBJ_STATUS_TERMINATED
"WARNING" - PLUG_OBJ_STATUS_WARNING
"ERROR" - PLUG_OBJ_STATUS_ERROR
"FATAL" - PLUG_OBJ_STATUS_FATAL
When not executed then a default status change from
"unknown" ('U') to PLUG_OBJ_STATUS_TERMINATED.
When PLUGINOBJ_STATUS will get an unknown status
then PLUG_OBJ_STATUS_ERROR will be set.

2 years agoAdd text search for mysql and fix issue with attachment query
Eric Bollengier [Thu, 23 Sep 2021 18:55:32 +0000 (20:55 +0200)] 
Add text search for mysql and fix issue with attachment query

2 years agoUpdate list medata usage message
Eric Bollengier [Mon, 29 Nov 2021 10:05:48 +0000 (11:05 +0100)] 
Update list medata usage message

2 years agoAdd dummy PKEY to new MySQL tables
Eric Bollengier [Fri, 26 Nov 2021 17:27:27 +0000 (18:27 +0100)] 
Add dummy PKEY to new MySQL tables

2 years agotweak comments
Eric Bollengier [Fri, 26 Nov 2021 17:05:52 +0000 (18:05 +0100)] 
tweak comments

2 years agoAdd bconsole .search command
Eric Bollengier [Fri, 19 Nov 2021 21:22:40 +0000 (22:22 +0100)] 
Add bconsole .search command

2 years agoFix memory leak when restore is aborted
Eric Bollengier [Fri, 19 Nov 2021 21:22:22 +0000 (22:22 +0100)] 
Fix memory leak when restore is aborted

2 years agokubernetes: Add Plugin Object support.
Radosław Korzeniewski [Fri, 11 Jun 2021 14:20:11 +0000 (16:20 +0200)] 
kubernetes: Add Plugin Object support.

This patch adds PluginObject support to the Kubernetes Backend.
Backup job will create two Plugin Objects:
1. aggregated number of PODs backuped
2. aggregated number and size of PVCs backuped
I.e.
*llist objects objectid=59
       objectid: 59
          jobid: 2,212
           path: /@kubernetes/
       filename:
     pluginname: kubernetes: ns=plugintest debug verify_ssl=0
 objectcategory: Container
     objecttype: POD
     objectname: Kubernetes PODs
   objectsource: 192.168.2.140:6443
     objectuuid: 192.168.2.140:6443
     objectsize: 0
   objectstatus: U
    objectcount: 8

*llist objects objectid=60
       objectid: 60
          jobid: 2,212
           path: /@kubernetes/
       filename:
     pluginname: kubernetes: ns=plugintest debug verify_ssl=0
 objectcategory: Container
     objecttype: PVC
     objectname: Kubernetes Persistent Volume Claims
   objectsource: 192.168.2.140:6443
     objectuuid: 192.168.2.140:6443
     objectsize: 5,368,709,120
   objectstatus: U
    objectcount: 5

2 years agoFix #8356 About very small max volume size
Michal Rakowski [Tue, 23 Nov 2021 15:34:36 +0000 (16:34 +0100)] 
Fix #8356 About very small max volume size

2 years agoregress: fix exclude-dir-test
Michal Rakowski [Tue, 23 Nov 2021 14:44:35 +0000 (15:44 +0100)] 
regress: fix exclude-dir-test

2 years agoMake 'list object' more resilient for invalid input
Michal Rakowski [Mon, 22 Nov 2021 12:57:29 +0000 (13:57 +0100)] 
Make 'list object' more resilient for invalid input

2 years agopluginlib: Add named pipe support for Metaplugin extend STAT: command.
Radosław Korzeniewski [Wed, 10 Nov 2021 19:12:35 +0000 (20:12 +0100)] 
pluginlib: Add named pipe support for Metaplugin extend STAT: command.

2 years agomove 'check_for_invalid_chars' helper to common code
Michal Rakowski [Thu, 18 Nov 2021 12:28:07 +0000 (13:28 +0100)] 
move 'check_for_invalid_chars' helper to common code

2 years agoTweak Status table to be in-sync with all Job statuses possible
Michal Rakowski [Wed, 17 Nov 2021 11:42:44 +0000 (12:42 +0100)] 
Tweak Status table to be in-sync with all Job statuses possible

2 years agoFix #8335 About 'llist jobs' showing jobstatuslong field
Michal Rakowski [Mon, 15 Nov 2021 21:15:17 +0000 (22:15 +0100)] 
Fix #8335 About 'llist jobs' showing jobstatuslong field

2 years agoFix compilation issue when ZLIB is available and not LZO and ZSTD
Eric Bollengier [Thu, 18 Nov 2021 13:59:43 +0000 (14:59 +0100)] 
Fix compilation issue when ZLIB is available and not LZO and ZSTD

2 years agoFix #5240 About 'status client/storage' showing maxConcJobs
Michal Rakowski [Mon, 15 Nov 2021 21:50:45 +0000 (22:50 +0100)] 
Fix #5240 About 'status client/storage' showing maxConcJobs

2 years agoregress: Update status-test with disable client
Michal Rakowski [Mon, 15 Nov 2021 09:31:39 +0000 (10:31 +0100)] 
regress: Update status-test with disable client

2 years agoFix #8353 About 'status all' listing disable client
Michal Rakowski [Mon, 15 Nov 2021 09:40:01 +0000 (10:40 +0100)] 
Fix #8353 About 'status all' listing disable client

2 years agokubernetes: Add BACKEND_TIMEOUT default option.
Radosław Korzeniewski [Fri, 5 Nov 2021 15:13:28 +0000 (16:13 +0100)] 
kubernetes: Add BACKEND_TIMEOUT default option.

2 years agopluginlib: Add per plugin IO timeout for backend.
Radosław Korzeniewski [Fri, 5 Nov 2021 15:12:34 +0000 (16:12 +0100)] 
pluginlib: Add per plugin IO timeout for backend.

Backend can define compile in timeout value with the following variable:
`const uint32_t BACKEND_TIMEOUT = 0; // use default`
The value set at this variable defines a timeout in seconds which will
be applied to all recvbackend_data() and sendbackend_data() calls.
The value of zero (0) setup a default timeout of 3600 seconds.
Set it to zero if unsure.

2 years agokubernetes: Add DONOTSAVE_FT_PLUGIN_CONFIG option.
Radosław Korzeniewski [Fri, 5 Nov 2021 11:23:57 +0000 (12:23 +0100)] 
kubernetes: Add DONOTSAVE_FT_PLUGIN_CONFIG option.

2 years agopluginlib: Metaplugin avoid saving FT_PLUGIN_CONFIG Restore Options.
Radosław Korzeniewski [Fri, 5 Nov 2021 11:23:22 +0000 (12:23 +0100)] 
pluginlib: Metaplugin avoid saving FT_PLUGIN_CONFIG Restore Options.

Add a new compile time variable:
const bool DONOTSAVE_FT_PLUGIN_CONFIG = false;
When `false` then Metaplugin will save plugin_items_dump[]
Restore Options as usual. When `true` then save is avoided.

2 years agokubernetes: Add missing file.
Radosław Korzeniewski [Thu, 4 Nov 2021 17:24:07 +0000 (18:24 +0100)] 
kubernetes: Add missing file.

2 years agoFix #390 About Job Message for 'ExcludeDirContaining'
Michal Rakowski [Thu, 4 Nov 2021 15:47:57 +0000 (16:47 +0100)] 
Fix #390 About Job Message for 'ExcludeDirContaining'

2 years agoFix #7946 About distro's 'unknown' string not informative enough
Michal Rakowski [Fri, 5 Nov 2021 20:01:49 +0000 (21:01 +0100)] 
Fix #7946 About distro's 'unknown' string not informative enough

2 years agoremove the meaning less "Drive X is not loaded" for virtual autochanger
Alain Spineux [Thu, 4 Nov 2021 17:12:27 +0000 (18:12 +0100)] 
remove the meaning less "Drive X is not loaded" for virtual autochanger

- in "status storage" output

Device Dedup is "Drive-9" (/home/bac/workspace2/bee/regress/tmp) mounted with:
    Volume:      TestVolume005
    Pool:        Full
    Media type:  DedupMedia
    Total Bytes=1,495,682,876 Blocks=247 Bytes/block=6,055,396
    Positioned at File=0 Block=0
   Drive 9 is not loaded. <=========== REMOVE THIS ========
   Available Space=21.78 GB

2 years agoFix #8240 About wrong path in update_bacula_tables
Michal Rakowski [Thu, 4 Nov 2021 12:51:50 +0000 (13:51 +0100)] 
Fix #8240 About wrong path in update_bacula_tables

2 years agoFix #8224 About the 'MutliDBConn' typo
Michal Rakowski [Thu, 4 Nov 2021 12:36:34 +0000 (13:36 +0100)] 
Fix #8224 About the 'MutliDBConn' typo

2 years agopluginlib: Metaplugin - add symbolic link support for external STAT command.
Radosław Korzeniewski [Thu, 4 Nov 2021 13:59:52 +0000 (14:59 +0100)] 
pluginlib: Metaplugin - add symbolic link support for external STAT command.

2 years agopluginlib: Correct build after qemu plugin merge.
Radosław Korzeniewski [Thu, 4 Nov 2021 12:42:26 +0000 (13:42 +0100)] 
pluginlib: Correct build after qemu plugin merge.

2 years agorpms: Add 'libcap-devel' requirement for the redhat and suse builds
Michal Rakowski [Thu, 4 Nov 2021 12:13:10 +0000 (13:13 +0100)] 
rpms: Add 'libcap-devel' requirement for the redhat and suse builds

2 years agoFix #8151 About logging IP address for security messages
Michal Rakowski [Thu, 4 Nov 2021 11:52:30 +0000 (12:52 +0100)] 
Fix #8151 About logging IP address for security messages

2 years agoregress: Fix permission on base32-unittests
Eric Bollengier [Mon, 1 Nov 2021 10:04:10 +0000 (11:04 +0100)] 
regress: Fix permission on base32-unittests

2 years agoregress: add fd-jobuser-test
Michal Rakowski [Wed, 27 Oct 2021 15:32:40 +0000 (17:32 +0200)] 
regress: add fd-jobuser-test

2 years agoAdd 'BackupJobUser' and 'RestoreJobUser' FD directives
Michal Rakowski [Wed, 27 Oct 2021 13:54:55 +0000 (15:54 +0200)] 
Add 'BackupJobUser' and 'RestoreJobUser' FD directives

2 years agopluginlib: Fix compilation on older compilers.
radekk [Fri, 29 Oct 2021 09:28:46 +0000 (05:28 -0400)] 
pluginlib: Fix compilation on older compilers.

2 years agopluginlib: Update execprog to better handle termination.
Radosław Korzeniewski [Tue, 26 Oct 2021 17:11:43 +0000 (19:11 +0200)] 
pluginlib: Update execprog to better handle termination.

2 years agocloud: Adapt aws driver
Norbert Bizet [Mon, 30 Aug 2021 18:15:02 +0000 (14:15 -0400)] 
cloud: Adapt aws driver

2 years agoregress: Build aws driver within regress tests
Norbert Bizet [Fri, 27 Aug 2021 17:21:41 +0000 (13:21 -0400)] 
regress: Build aws driver within regress tests

2 years agoregress: "Amazon" is a new cloud type
Norbert Bizet [Fri, 27 Aug 2021 17:20:24 +0000 (13:20 -0400)] 
regress: "Amazon" is a new cloud type

2 years agocloud: update Makefiles
Norbert Bizet [Thu, 28 Oct 2021 08:20:51 +0000 (04:20 -0400)] 
cloud: update Makefiles

2 years agocloud: Add aws_cloud_driver to regress cleanup script
Norbert Bizet [Fri, 27 Aug 2021 10:06:32 +0000 (06:06 -0400)] 
cloud: Add aws_cloud_driver to regress cleanup script

2 years agocloud: Add generic aws_cloud_driver
Norbert Bizet [Fri, 27 Aug 2021 10:05:07 +0000 (06:05 -0400)] 
cloud: Add generic aws_cloud_driver

2 years agopluginlib: Update pluginclass to better handle listing.
Radosław Korzeniewski [Mon, 25 Oct 2021 19:26:16 +0000 (21:26 +0200)] 
pluginlib: Update pluginclass to better handle listing.

2 years agoAdd install-bjoblist target to src/tools/Makefile
Eric Bollengier [Mon, 25 Oct 2021 15:43:37 +0000 (17:43 +0200)] 
Add install-bjoblist target to src/tools/Makefile

2 years agoFix plugins/Makefile.inc.in
Eric Bollengier [Mon, 25 Oct 2021 13:16:33 +0000 (15:16 +0200)] 
Fix plugins/Makefile.inc.in

2 years agopluginlib: Add pluginlib::parse_param_add_str().
Radosław Korzeniewski [Thu, 21 Oct 2021 17:33:12 +0000 (19:33 +0200)] 
pluginlib: Add pluginlib::parse_param_add_str().

2 years agopluginlib: Fix pluginclass accurate mode handling.
Radosław Korzeniewski [Tue, 19 Oct 2021 15:43:34 +0000 (17:43 +0200)] 
pluginlib: Fix pluginclass accurate mode handling.

2 years agopluginlib: Update execprog class.
Radosław Korzeniewski [Tue, 19 Oct 2021 15:43:05 +0000 (17:43 +0200)] 
pluginlib: Update execprog class.

2 years agoFix regression in smart_alist.
Radosław Korzeniewski [Fri, 15 Oct 2021 13:44:37 +0000 (15:44 +0200)] 
Fix regression in smart_alist.

2 years agoAdd copy operator to smartalist.
Radosław Korzeniewski [Thu, 14 Oct 2021 15:26:31 +0000 (17:26 +0200)] 
Add copy operator to smartalist.

2 years agopluginclass: Fix command parsing.
Radosław Korzeniewski [Thu, 14 Oct 2021 15:25:42 +0000 (17:25 +0200)] 
pluginclass: Fix command parsing.

2 years agopluginlib: Create plugin base framework for FD Plugins.
Radosław Korzeniewski [Thu, 16 Sep 2021 11:22:33 +0000 (13:22 +0200)] 
pluginlib: Create plugin base framework for FD Plugins.

2 years agoUpdate pluginlib build.
Radosław Korzeniewski [Thu, 16 Sep 2021 11:16:55 +0000 (13:16 +0200)] 
Update pluginlib build.

2 years agoregress: add fd-allowed-restore-dir-test
Michal Rakowski [Mon, 18 Oct 2021 21:25:01 +0000 (23:25 +0200)] 
regress: add fd-allowed-restore-dir-test

2 years agoAdd 'AllowedRestoreDirectories' directive for the FD
Michal Rakowski [Mon, 18 Oct 2021 21:27:51 +0000 (23:27 +0200)] 
Add 'AllowedRestoreDirectories' directive for the FD

2 years agoremove redundant restore_cleanup()
Michal Rakowski [Mon, 18 Oct 2021 20:04:32 +0000 (22:04 +0200)] 
remove redundant restore_cleanup()

For the success path, it's called anyway, for the error path it's called
if the `do_restore()` fails, so there is no need to call it twice.

2 years agobgit.py: add a --path filter to only shows commit related to a file or dir
Alain Spineux [Fri, 22 Oct 2021 14:29:49 +0000 (16:29 +0200)] 
bgit.py: add a --path filter to only shows commit related to a file or dir

- for example to have the changes related only to dedup2:
$ bgit.py cmp_branch --sha --path bacula/src/stored/dedup2 bee/Branch-12.8 bee/alain-12.9-dedup2-lsoc

2 years agoregress: add fd-excluded-backup-dir-test
Michal Rakowski [Sat, 23 Oct 2021 19:46:25 +0000 (21:46 +0200)] 
regress: add fd-excluded-backup-dir-test

2 years agoAdd ExcludedBackupDirectories FD directive
Michal Rakowski [Wed, 20 Oct 2021 21:22:14 +0000 (23:22 +0200)] 
Add ExcludedBackupDirectories FD directive

2 years agoregress: Add bjoblist-test
Arnaud Garin [Fri, 22 Oct 2021 12:49:24 +0000 (14:49 +0200)] 
regress: Add bjoblist-test

2 years agoFix typo in bjoblist
Arnaud Garin [Fri, 22 Oct 2021 12:46:12 +0000 (14:46 +0200)] 
Fix typo in bjoblist

2 years agoAdd update_..._tables_1024_to_1025 to ./configure.in
Eric Bollengier [Mon, 18 Oct 2021 20:17:27 +0000 (22:17 +0200)] 
Add update_..._tables_1024_to_1025  to ./configure.in

2 years agoUse transation to create PostgreSQL schema
Eric Bollengier [Mon, 18 Oct 2021 18:53:33 +0000 (20:53 +0200)] 
Use transation to create PostgreSQL schema

2 years agoregress: Fix antivirus regression test header
Norbert Bizet [Mon, 18 Oct 2021 14:51:09 +0000 (10:51 -0400)] 
regress: Fix antivirus regression test header

2 years agoregress: add fd-allowed-scripts-dirs-test
Michal Rakowski [Fri, 15 Oct 2021 08:39:01 +0000 (10:39 +0200)] 
regress: add fd-allowed-scripts-dirs-test

2 years agoExtend 'berrno' class with Bacula-specific error handling
Michal Rakowski [Fri, 15 Oct 2021 15:52:52 +0000 (17:52 +0200)] 
Extend 'berrno' class with Bacula-specific error handling

2 years agoantivirus regress test. Install antivirus before running test.
Norbert Bizet [Tue, 12 Oct 2021 13:42:20 +0000 (09:42 -0400)] 
antivirus regress test. Install antivirus before running test.

2 years agoTweak updatedb scripts
Eric Bollengier [Mon, 18 Oct 2021 13:39:56 +0000 (15:39 +0200)] 
Tweak updatedb scripts

2 years agoUpdate SQL scripts for version 1025
Eric Bollengier [Fri, 15 Oct 2021 13:47:04 +0000 (15:47 +0200)] 
Update SQL scripts for version 1025

2 years agototp-bpam: Add support for qrencode 3.x on Redhat
Eric Bollengier [Fri, 15 Oct 2021 11:50:05 +0000 (13:50 +0200)] 
totp-bpam: Add support for qrencode 3.x on Redhat

2 years agoFix compilation when LZO is not available
Eric Bollengier [Fri, 15 Oct 2021 09:13:32 +0000 (11:13 +0200)] 
Fix compilation when LZO is not available

2 years agoFix zstd issue in ./configure.in
Eric Bollengier [Thu, 14 Oct 2021 14:01:12 +0000 (16:01 +0200)] 
Fix zstd issue in ./configure.in

2 years agorpms: Add dependency for libzstd
Eric Bollengier [Thu, 14 Oct 2021 12:21:32 +0000 (14:21 +0200)] 
rpms: Add dependency for libzstd

2 years agoFix compilation warnings
Eric Bollengier [Thu, 14 Oct 2021 12:21:13 +0000 (14:21 +0200)] 
Fix compilation warnings

2 years agoFix append/immutable compilation problem for Windows
Michal Rakowski [Wed, 13 Oct 2021 16:59:41 +0000 (18:59 +0200)] 
Fix append/immutable compilation problem for Windows

2 years agoupdate autoconf
Michal Rakowski [Wed, 13 Oct 2021 16:59:25 +0000 (18:59 +0200)] 
update autoconf

2 years agoregress: Schedule ZSTD test in CDASH
Eric Bollengier [Wed, 13 Oct 2021 15:40:17 +0000 (17:40 +0200)] 
regress: Schedule ZSTD test in CDASH

2 years agoAdd ZSTD to Windows build
Eric Bollengier [Wed, 13 Oct 2021 15:30:05 +0000 (17:30 +0200)] 
Add ZSTD to Windows build

2 years agoTweak ZSTD detection in configure.in
Eric Bollengier [Wed, 13 Oct 2021 11:56:57 +0000 (13:56 +0200)] 
Tweak ZSTD detection in configure.in

2 years agoregress: Add zstd-test
Eric Bollengier [Tue, 12 Oct 2021 15:29:32 +0000 (17:29 +0200)] 
regress: Add zstd-test

2 years agoAdd ZSTD compression support
Eric Bollengier [Tue, 12 Oct 2021 15:28:58 +0000 (17:28 +0200)] 
Add ZSTD compression support

2 years agoFix postgresql catalog creation script
Eric Bollengier [Wed, 13 Oct 2021 15:03:21 +0000 (17:03 +0200)] 
Fix postgresql catalog creation script

2 years agoregress: add fd-allowed-backup-dir-test
Michal Rakowski [Mon, 20 Sep 2021 19:39:31 +0000 (21:39 +0200)] 
regress: add fd-allowed-backup-dir-test

2 years agoAdd 'AllowedBackupDir' FD directive
Michal Rakowski [Mon, 20 Sep 2021 19:23:34 +0000 (21:23 +0200)] 
Add 'AllowedBackupDir' FD directive

2 years agofix memory leak in ProgressCounter
Alain Spineux [Fri, 8 Oct 2021 12:23:58 +0000 (14:23 +0200)] 
fix memory leak in ProgressCounter

2 years agoregress: add append and immutable volume tests
Michal Rakowski [Tue, 31 Aug 2021 11:01:35 +0000 (13:01 +0200)] 
regress: add append and immutable volume tests

WARNING: To be able to run this test you have to be sure that Bacula
is configured with systemd support (--with-systemd)
and that correct bacula-sd.service exists in your systemd directory.
Also see platforms/systed.

2 years agoAdd support for the APPEND and IMMUTABLE flags for File Volumes
Michal Rakowski [Thu, 2 Sep 2021 14:32:52 +0000 (16:32 +0200)] 
Add support for the APPEND and IMMUTABLE flags for File Volumes

2 years agoCheck for the needed capabilites at the SD startup
Michal Rakowski [Thu, 9 Sep 2021 11:04:19 +0000 (13:04 +0200)] 
Check for the needed capabilites at the SD startup

2 years agoupdate autoconf
Michal Rakowski [Fri, 10 Sep 2021 15:45:51 +0000 (17:45 +0200)] 
update autoconf

2 years agoFix SQLite3 new Client::Plugins field
Eric Bollengier [Tue, 12 Oct 2021 08:18:03 +0000 (10:18 +0200)] 
Fix SQLite3 new Client::Plugins field

2 years agoregress: Add antivirus test
Norbert Bizet [Tue, 12 Oct 2021 09:57:51 +0000 (11:57 +0200)] 
regress: Add antivirus test

2 years agoEnhance plugin_verify_data_close() plugin interface
Eric Bollengier [Tue, 12 Oct 2021 07:14:13 +0000 (09:14 +0200)] 
Enhance plugin_verify_data_close() plugin interface

2 years agoFix windows compilation
Eric Bollengier [Mon, 11 Oct 2021 19:15:44 +0000 (21:15 +0200)] 
Fix windows compilation

2 years agoAdd support for PluginOptions
Eric Bollengier [Mon, 11 Oct 2021 08:27:08 +0000 (10:27 +0200)] 
Add support for PluginOptions

2 years agometaplugin: Add missing files.
Radosław Korzeniewski [Sat, 9 Oct 2021 15:51:13 +0000 (17:51 +0200)] 
metaplugin: Add missing files.

2 years agoFix src/plugins/dird/Makefile.in
Eric Bollengier [Sat, 9 Oct 2021 09:23:03 +0000 (11:23 +0200)] 
Fix src/plugins/dird/Makefile.in

2 years agoantivirus: Add Antivirus plugin with Clamav backend
Norbert Bizet [Fri, 8 Oct 2021 16:46:55 +0000 (12:46 -0400)] 
antivirus: Add Antivirus plugin with Clamav backend

2 years agoAdd simple send() function to bsockcore
Norbert Bizet [Fri, 8 Oct 2021 16:54:46 +0000 (12:54 -0400)] 
Add simple send() function to bsockcore