]> git.ipfire.org Git - thirdparty/bacula.git/log
thirdparty/bacula.git
4 years agoBEE Backport bacula/src/cats/sql.c
Eric Bollengier [Mon, 11 May 2020 15:13:00 +0000 (17:13 +0200)] 
BEE Backport bacula/src/cats/sql.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 3 11:48:33 2020 +0100

    Remove BEEF from FileMedia table

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue May 28 11:40:09 2019 +0200

    Fix SQL query when ACL directives are not set

    - a 'AND' is left alone in a SQL query when an ACL directive is not defined
      (here 'ClientAcl' and for command 'list jobs client="foobar"'
    bdb.h:135-0 bdb.h:135 query SELECT JobId,Job.Name,StartTime,Type,Level,Jobbdb.h:135-0 bdb.h:135 query SELECT JobId,Job.Name,StartTime,Type,Level,JobFiles,JobBytes,JobStatus FROM Job  JOIN Client USING (ClientId)  LEFT JOIN FileSet USING (FileSetId)   WHERE  Job.JobStatus='T'  AND  Job.Type='B'  AND  Job.ClientId=1    AND    ORDER BY StartTime ASC,JobId ASC  failedFiles,JobBytes,JobStatus FROM Job  JOIN Client USING (ClientId)  LEFT JOIN FileSet USING (FileSetId)   WHERE  Job.JobStatus='T'  AND  Job.Type='B'  AND  Job.ClientId=1    AND    ORDER BY StartTime ASC,JobId ASC  failed
    - This fix 2 problems:
      - sometime 2 clients ACL must be used in // like ClientACL,
        RestoreClientACL and the "merge" was not done properly
      - when no directives have been defined the ACL condition must always
        be false, here we use XXX IN ('')

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu May 16 10:40:49 2019 +0200

    Fix #5053 about BVFS commands not compatible with ACLs wildcards

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Aug 21 09:38:53 2018 +0200

    Fix console ACL glob with SQLite

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jun 18 15:40:30 2018 +0200

    Allow glob type expression in Console ACL lists

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 25 11:56:11 2016 +0200

    Allow to specify ACLs to restrict sql_list output

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat May 30 15:48:05 2015 +0200

    Revert most of patch ef57e6c4 and replace with old cats code

4 years agoBEE Backport bacula/src/cats/protos.h
Eric Bollengier [Mon, 11 May 2020 15:12:48 +0000 (17:12 +0200)] 
BEE Backport bacula/src/cats/protos.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 24 20:16:22 2020 +0200

    Reliably log user activity in a way that satisfies auditors

    Messages {
      name = Standard
      append = /tmp/bacula.log = all

      # To send the events into a log and in the catalog
      append = /tmp/audit.log = events, !events.bweb
      catalog = all, events
    }

    Users can create custom events with a console command:

    .events

    They can list events in the catalog with

    * list events
    +---------------------+------------+-----------+--------------------------------+
    | time                | type       | source    | events                         |
    +---------------------+------------+-----------+--------------------------------+
    | 2020-04-24 17:04:07 | daemon     | *Daemon*  | Director startup               |
    | 2020-04-24 17:04:12 | connection | *Console* | Connection from 127.0.0.1:8101 |
    | 2020-04-24 17:04:20 | command    | *Console* | purge jobid=1                  |
    +---------------------+------------+-----------+--------------------------------+

    The event format in the log is:

    24-Apr 17:04 Events: code=DC0001 from=zog8-dir ref=0x1fa5 type=daemon source=*Daemon* text=Director startup

    24-Apr 17:04 Events: code=DC0002 from=zog8-dir ref=0x7fb58000c4b8 type=connection source=*Console* text=Connection from 127.0.0.1:8101

    The reference (ref) is used to identify a console session, all activity
    from the same console will have the same reference.

    The source is the name of the restricted console, or *Console* if this
    is the default console.

    We have the following events:
     - cancel a job
     - delete volume
     - delete job
     - purge job
     - delete pool
     - delete client
     - daemon startup
     - daemon shutdown
     - console connection
     - console disconnection

    To add a new events:
    ua->send_events(type, format, arguments);

Author: Ana Emilia Machado de Arruda <emiliaarruda@gmail.com>
Date:   Mon Feb 24 16:47:40 2020 +0100

    Add SSL connections to database open code

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Oct 6 15:18:55 2017 +0200

    cats: Modify db_list_files() to accept a callback

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Aug 28 16:46:19 2017 +0200

    Add SQL functions to list RestoreObjects and files

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 5 18:55:10 2016 +0200

    Implement FileMedia feature and FO_OFFSETS for plugin

     - Allow plugins to use the FO_OFFSETS option
     - Add SQL support in cats
     - Add bvfs commands
     - Add FileMedia handling in the Storage Daemon
     - Add use FO_OFFSETS option in test plugin
     - Add new sql scripts to configure.in
     - Update catalog version to 1018

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 9 16:53:34 2016 +0100

    Add .info bconsole command to estimate job files/bytes

4 years agoBEE Backport bacula/src/cats/postgresql.c
Ana Emilia Machado de Arruda [Mon, 11 May 2020 15:12:13 +0000 (17:12 +0200)] 
BEE Backport bacula/src/cats/postgresql.c

This commit is the result of the squash of the following main commits:

Author: Ana Emilia Machado de Arruda <emiliaarruda@gmail.com>
Date:   Mon Feb 24 16:47:40 2020 +0100

    Add SSL connections to database open code

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu May 28 08:30:47 2015 +0200

    Change B_DB to BDB to correspond to naming convention

4 years agoBEE Backport bacula/src/cats/mysql.c
Eric Bollengier [Mon, 11 May 2020 15:11:58 +0000 (17:11 +0200)] 
BEE Backport bacula/src/cats/mysql.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Aug 30 09:57:12 2019 +0200

    Fix compilation for MySQL 5.1

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Jul 9 14:46:07 2019 +0200

    Fix mysql compilation issue with redhat8

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat May 30 14:32:07 2015 +0200

    Revert most of patch ef57e6c4 and replace with old cats code

4 years agoBEE Backport bacula/src/cats/make_sqlite3_tables.in
Eric Bollengier [Mon, 11 May 2020 15:11:46 +0000 (17:11 +0200)] 
BEE Backport bacula/src/cats/make_sqlite3_tables.in

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 29 13:52:04 2020 +0200

    Update SQL scripts for Events table. Catalog format 1022

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 16 17:47:54 2018 +0100

    Add catalog Job column PriorJob

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 13 14:13:54 2018 +0100

    Add Pool::MaxPoolBytes to the catalog. Catalog version is now 1020

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jan 5 20:27:33 2017 +0100

    Add CacheRetention to the Media table

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Dec 1 10:29:47 2016 +0100

    Fix bug 2275 Postgresql update script failure and add CloudParts in Media table

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 5 18:55:10 2016 +0200

    Implement FileMedia feature and FO_OFFSETS for plugin

     - Allow plugins to use the FO_OFFSETS option
     - Add SQL support in cats
     - Add bvfs commands
     - Add FileMedia handling in the Storage Daemon
     - Add use FO_OFFSETS option in test plugin
     - Add new sql scripts to configure.in
     - Update catalog version to 1018

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Aug 26 13:57:34 2013 +0200

    Merge Filename table to File

4 years agoBEE Backport bacula/src/cats/make_postgresql_tables.in
Eric Bollengier [Mon, 11 May 2020 15:11:40 +0000 (17:11 +0200)] 
BEE Backport bacula/src/cats/make_postgresql_tables.in

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 29 13:52:04 2020 +0200

    Update SQL scripts for Events table. Catalog format 1022

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 16 17:47:54 2018 +0100

    Add catalog Job column PriorJob

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 13 14:13:54 2018 +0100

    Add Pool::MaxPoolBytes to the catalog. Catalog version is now 1020

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 1 12:48:47 2017 +0100

    Fix #2520 about CacheRetention not properly updated from Pool

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Dec 1 10:29:47 2016 +0100

    Fix bug 2275 Postgresql update script failure and add CloudParts in Media table

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 5 18:55:10 2016 +0200

    Implement FileMedia feature and FO_OFFSETS for plugin

     - Allow plugins to use the FO_OFFSETS option
     - Add SQL support in cats
     - Add bvfs commands
     - Add FileMedia handling in the Storage Daemon
     - Add use FO_OFFSETS option in test plugin
     - Add new sql scripts to configure.in
     - Update catalog version to 1018

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Aug 26 13:57:34 2013 +0200

    Merge Filename table to File

4 years agoBEE Backport bacula/src/cats/make_mysql_tables.in
Eric Bollengier [Mon, 11 May 2020 15:11:29 +0000 (17:11 +0200)] 
BEE Backport bacula/src/cats/make_mysql_tables.in

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 29 13:52:04 2020 +0200

    Update SQL scripts for Events table. Catalog format 1022

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jun 21 17:04:46 2018 +0200

    Fix #3904 about MySQL 5.7 issue with Job/JobHisto:PriorJob field

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 13 14:13:54 2018 +0100

    Add Pool::MaxPoolBytes to the catalog. Catalog version is now 1020

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jan 5 20:27:33 2017 +0100

    Add CacheRetention to the Media table

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Dec 1 10:29:47 2016 +0100

    Fix bug 2275 Postgresql update script failure and add CloudParts in Media table

Author: Kern Sibbald <kern@sibbald.com>
Date:   Tue Oct 11 09:48:34 2016 +0200

    Add new Cloud part info to catalog - update database version to 1019

Author: Kern Sibbald <kern@sibbald.com>
Date:   Tue May 31 08:15:29 2016 +0200

    Fix bug #1849 MySQL does not accept 0 for DATETIME default

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 5 18:55:10 2016 +0200

    Implement FileMedia feature and FO_OFFSETS for plugin

     - Allow plugins to use the FO_OFFSETS option
     - Add SQL support in cats
     - Add bvfs commands
     - Add FileMedia handling in the Storage Daemon
     - Add use FO_OFFSETS option in test plugin
     - Add new sql scripts to configure.in
     - Update catalog version to 1018

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu May 1 13:07:17 2014 +0200

    Fix #10747 about MySQL database creation/upgrade script

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Aug 26 13:57:34 2013 +0200

    Merge Filename table to File

4 years agoBEE Backport bacula/src/cats/make_catalog_backup.pl.in
Eric Bollengier [Mon, 11 May 2020 15:11:13 +0000 (17:11 +0200)] 
BEE Backport bacula/src/cats/make_catalog_backup.pl.in

This commit is the result of the squash of the following main commits:

4 years agoBEE Backport bacula/src/cats/grant_postgresql_privileges.in
Eric Bollengier [Mon, 11 May 2020 15:10:53 +0000 (17:10 +0200)] 
BEE Backport bacula/src/cats/grant_postgresql_privileges.in

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 29 13:52:04 2020 +0200

    Update SQL scripts for Events table. Catalog format 1022

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 24 20:16:22 2020 +0200

    Reliably log user activity in a way that satisfies auditors

    Messages {
      name = Standard
      append = /tmp/bacula.log = all

      # To send the events into a log and in the catalog
      append = /tmp/audit.log = events, !events.bweb
      catalog = all, events
    }

    Users can create custom events with a console command:

    .events

    They can list events in the catalog with

    * list events
    +---------------------+------------+-----------+--------------------------------+
    | time                | type       | source    | events                         |
    +---------------------+------------+-----------+--------------------------------+
    | 2020-04-24 17:04:07 | daemon     | *Daemon*  | Director startup               |
    | 2020-04-24 17:04:12 | connection | *Console* | Connection from 127.0.0.1:8101 |
    | 2020-04-24 17:04:20 | command    | *Console* | purge jobid=1                  |
    +---------------------+------------+-----------+--------------------------------+

    The event format in the log is:

    24-Apr 17:04 Events: code=DC0001 from=zog8-dir ref=0x1fa5 type=daemon source=*Daemon* text=Director startup

    24-Apr 17:04 Events: code=DC0002 from=zog8-dir ref=0x7fb58000c4b8 type=connection source=*Console* text=Connection from 127.0.0.1:8101

    The reference (ref) is used to identify a console session, all activity
    from the same console will have the same reference.

    The source is the name of the restricted console, or *Console* if this
    is the default console.

    We have the following events:
     - cancel a job
     - delete volume
     - delete job
     - purge job
     - delete pool
     - delete client
     - daemon startup
     - daemon shutdown
     - console connection
     - console disconnection

    To add a new events:
    ua->send_events(type, format, arguments);

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 12 09:25:59 2019 +0100

    Fix #4754 about incorrect path for the psql command in grant_postgresql_privileges

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu May 19 15:34:47 2016 +0200

    Fix permission issue on the new FileMedia table in grant_postgresql_privileges script

4 years agoBEE Backport fix_postgresql_tables
Kern Sibbald [Mon, 11 May 2020 15:04:35 +0000 (17:04 +0200)] 
BEE Backport fix_postgresql_tables

This commit is the result of the squash of the following main commits:

Author: Kern Sibbald <kern@sibbald.com>
Date:   Wed Nov 24 17:16:58 2004 +0000

    - Take Dan's fix to the fix_postgresql_tables (thanks Dan)
    - Increase Maximum Concurrent Jobs to 20 in SD and FD!
    - Fix improper handling of autochanger Volumes that are not
      marked InChanger.

    git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1718 91ce42f0-d328-0410-95d8-f526ca767f89

Author: Kern Sibbald <kern@sibbald.com>
Date:   Mon Nov 22 09:25:19 2004 +0000

    Update doc and authentication error message

    git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1716 91ce42f0-d328-0410-95d8-f526ca767f89

4 years agoBEE Backport bacula/src/cats/drop_mysql_tables.in
Eric Bollengier [Mon, 11 May 2020 15:04:03 +0000 (17:04 +0200)] 
BEE Backport bacula/src/cats/drop_mysql_tables.in

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 29 13:52:04 2020 +0200

    Update SQL scripts for Events table. Catalog format 1022

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 5 18:55:10 2016 +0200

    Implement FileMedia feature and FO_OFFSETS for plugin

     - Allow plugins to use the FO_OFFSETS option
     - Add SQL support in cats
     - Add bvfs commands
     - Add FileMedia handling in the Storage Daemon
     - Add use FO_OFFSETS option in test plugin
     - Add new sql scripts to configure.in
     - Update catalog version to 1018

4 years agoBEE Backport bacula/src/cats/cats.h
Eric Bollengier [Mon, 11 May 2020 15:03:22 +0000 (17:03 +0200)] 
BEE Backport bacula/src/cats/cats.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 24 10:27:09 2020 +0200

    Add update jobid=x reviewed=y command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 24 20:16:22 2020 +0200

    Reliably log user activity in a way that satisfies auditors

    Messages {
      name = Standard
      append = /tmp/bacula.log = all

      # To send the events into a log and in the catalog
      append = /tmp/audit.log = events, !events.bweb
      catalog = all, events
    }

    Users can create custom events with a console command:

    .events

    They can list events in the catalog with

    * list events
    +---------------------+------------+-----------+--------------------------------+
    | time                | type       | source    | events                         |
    +---------------------+------------+-----------+--------------------------------+
    | 2020-04-24 17:04:07 | daemon     | *Daemon*  | Director startup               |
    | 2020-04-24 17:04:12 | connection | *Console* | Connection from 127.0.0.1:8101 |
    | 2020-04-24 17:04:20 | command    | *Console* | purge jobid=1                  |
    +---------------------+------------+-----------+--------------------------------+

    The event format in the log is:

    24-Apr 17:04 Events: code=DC0001 from=zog8-dir ref=0x1fa5 type=daemon source=*Daemon* text=Director startup

    24-Apr 17:04 Events: code=DC0002 from=zog8-dir ref=0x7fb58000c4b8 type=connection source=*Console* text=Connection from 127.0.0.1:8101

    The reference (ref) is used to identify a console session, all activity
    from the same console will have the same reference.

    The source is the name of the restricted console, or *Console* if this
    is the default console.

    We have the following events:
     - cancel a job
     - delete volume
     - delete job
     - purge job
     - delete pool
     - delete client
     - daemon startup
     - daemon shutdown
     - console connection
     - console disconnection

    To add a new events:
    ua->send_events(type, format, arguments);

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Dec 14 10:16:15 2018 +0100

    Add update command to set the Job comment field

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Dec 12 11:22:37 2018 +0100

    Use bmemset() rather than memset() in POOL_DBR creation

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 13 14:13:54 2018 +0100

    Add Pool::MaxPoolBytes to the catalog. Catalog version is now 1020

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Aug 28 16:46:19 2017 +0200

    Add SQL functions to list RestoreObjects and files

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 5 18:55:10 2016 +0200

    Implement FileMedia feature and FO_OFFSETS for plugin

     - Allow plugins to use the FO_OFFSETS option
     - Add SQL support in cats
     - Add bvfs commands
     - Add FileMedia handling in the Storage Daemon
     - Add use FO_OFFSETS option in test plugin
     - Add new sql scripts to configure.in
     - Update catalog version to 1018

Author: Kern Sibbald <kern@sibbald.com>
Date:   Tue Feb 25 22:46:38 2014 +0100

    Minor cleanup/refactor of cats

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Aug 26 13:57:34 2013 +0200

    Merge Filename table to File

4 years agoBEE Backport bacula/src/cats/cats.c
Kern Sibbald [Mon, 11 May 2020 15:03:08 +0000 (17:03 +0200)] 
BEE Backport bacula/src/cats/cats.c

This commit is the result of the squash of the following main commits:

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat May 30 14:32:07 2015 +0200

    Revert most of patch ef57e6c4 and replace with old cats code

4 years agoBEE Backport bacula/src/cats/bvfs.h
Eric Bollengier [Mon, 11 May 2020 15:03:04 +0000 (17:03 +0200)] 
BEE Backport bacula/src/cats/bvfs.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Aug 14 14:23:03 2019 +0200

    Move acl/permission BEEF code to bee_XXX.c/h files

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Jun 4 17:44:25 2019 +0200

    bvfs: Fix Client ACL SQL translation

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue May 28 10:38:58 2019 +0200

    bvfs: Use ClientACL+RestoreClientACL in bvfs queries

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Nov 20 16:53:02 2017 +0100

    bvfs: Fix hardlink selection issue with subdirectories

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Sat Nov 11 14:54:26 2017 +0100

    bvfs: Add function bvfs_delete_filed for plugins that requires to delete a catalog entry

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Oct 31 19:44:35 2016 +0100

    Allow to use glob in directoryACL from BVFS

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 18 18:07:24 2016 +0200

    Add DirectoryACL and UserIdACL directives to the Console resource

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Oct 23 12:21:49 2015 +0200

    Fix #1343 about a problem with BVFS queries with deleted directories

    We now use JobTDate to find the last entry (instead of JobId) and we
    check FileIndex=0 that indicates if a file or a directory was deleted.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Aug 11 15:24:55 2015 +0200

    Add bvfs interface to access DeltaSeq file attribute

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Aug 26 13:57:34 2013 +0200

    Merge Filename table to File

4 years agoBEE Backport bacula/src/cats/bvfs.c
Eric Bollengier [Mon, 11 May 2020 15:02:56 +0000 (17:02 +0200)] 
BEE Backport bacula/src/cats/bvfs.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 25 15:01:33 2020 +0100

    Change !BEEF to COMMUNITY

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Dec 2 16:09:07 2019 +0100

    Fix compilation with COMMUNITY

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Sep 19 11:24:32 2019 +0200

    Replace few strncpy() with bstrncpy()

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Aug 14 14:23:03 2019 +0200

    Move acl/permission BEEF code to bee_XXX.c/h files

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Jul 1 17:26:49 2019 +0200

    make .bvfs_clear_cache works with sqlite

    - The TRUNCATE TABLE command don't exist in sqlite, but the
      "delete from table" command is optimized to "truncate" the table when
      the "where" clause is not used.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue May 28 10:38:58 2019 +0200

    bvfs: Use ClientACL+RestoreClientACL in bvfs queries

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu May 16 10:40:49 2019 +0200

    Fix #5053 about BVFS commands not compatible with ACLs wildcards

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 26 10:21:14 2019 +0200

    Fix #4817 about BVFS query issue with SQLite

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 10 09:59:24 2019 +0200

    bvfs: Adapt queries for deleted directories

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 3 14:54:26 2019 +0200

    bvfs: Use ESCAPE for BaseFiles query

Author: Marcin Haba <marcin.haba@bacula.pl>
Date:   Fri Aug 17 17:03:28 2018 +0200

    Fix #3972 escaping special characters in bvfs restore for sqlite catalog

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 11 17:48:13 2018 +0200

    Fix #3607 about SQLite optimization with BVFS restore

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Mar 8 20:50:57 2018 +0100

    bvfs: Fix hardlinks detection with files having imcomplete st_mode attribute

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Nov 20 16:53:02 2017 +0100

    bvfs: Fix hardlink selection issue with subdirectories

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Sat Nov 11 14:54:26 2017 +0100

    bvfs: Add function bvfs_delete_filed for plugins that requires to delete a catalog entry

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Nov 9 15:01:55 2017 +0100

    bvfs: Add filename and path arguments to .bvfs_version

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Nov 1 11:47:04 2016 +0100

    More work on DirectoryACL and UserIdACL code

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 18 18:07:24 2016 +0200

    Add DirectoryACL and UserIdACL directives to the Console resource

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Oct 23 12:21:49 2015 +0200

    Fix #1343 about a problem with BVFS queries with deleted directories

    We now use JobTDate to find the last entry (instead of JobId) and we
    check FileIndex=0 that indicates if a file or a directory was deleted.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Aug 11 15:24:55 2015 +0200

    Add bvfs interface to access DeltaSeq file attribute

Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Apr 17 18:33:35 2015 +0200

    Refactor DB engine to be class based

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 9 10:10:52 2015 +0100

    Fix #875 about bvfs repeats the same output many times

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Oct 17 18:20:28 2013 +0200

    Fix bvfs lsfiles query with new Filename structure

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Aug 26 13:57:34 2013 +0200

    Merge Filename table to File

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Aug 16 11:30:00 2012 +0200

    Fix #1923 about MySQL 4 support for BVFS

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Sun Feb 12 19:18:53 2012 +0100

    Handle delta files in bvfs

4 years agoBEE Backport bacula/src/cats/bdb.h
Eric Bollengier [Mon, 11 May 2020 15:01:35 +0000 (17:01 +0200)] 
BEE Backport bacula/src/cats/bdb.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 24 20:16:22 2020 +0200

    Reliably log user activity in a way that satisfies auditors

    Messages {
      name = Standard
      append = /tmp/bacula.log = all

      # To send the events into a log and in the catalog
      append = /tmp/audit.log = events, !events.bweb
      catalog = all, events
    }

    Users can create custom events with a console command:

    .events

    They can list events in the catalog with

    * list events
    +---------------------+------------+-----------+--------------------------------+
    | time                | type       | source    | events                         |
    +---------------------+------------+-----------+--------------------------------+
    | 2020-04-24 17:04:07 | daemon     | *Daemon*  | Director startup               |
    | 2020-04-24 17:04:12 | connection | *Console* | Connection from 127.0.0.1:8101 |
    | 2020-04-24 17:04:20 | command    | *Console* | purge jobid=1                  |
    +---------------------+------------+-----------+--------------------------------+

    The event format in the log is:

    24-Apr 17:04 Events: code=DC0001 from=zog8-dir ref=0x1fa5 type=daemon source=*Daemon* text=Director startup

    24-Apr 17:04 Events: code=DC0002 from=zog8-dir ref=0x7fb58000c4b8 type=connection source=*Console* text=Connection from 127.0.0.1:8101

    The reference (ref) is used to identify a console session, all activity
    from the same console will have the same reference.

    The source is the name of the restricted console, or *Console* if this
    is the default console.

    We have the following events:
     - cancel a job
     - delete volume
     - delete job
     - purge job
     - delete pool
     - delete client
     - daemon startup
     - daemon shutdown
     - console connection
     - console disconnection

    To add a new events:
    ua->send_events(type, format, arguments);

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 3 11:48:33 2020 +0100

    Remove BEEF from FileMedia table

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jul 4 10:50:46 2018 +0200

    win32: Fix director compilation

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jun 18 15:40:30 2018 +0200

    Allow glob type expression in Console ACL lists

Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Apr 17 18:58:00 2015 +0200

    Add new cats header file

4 years agoBEE Backport bacula/src/cats/Makefile.in
Eric Bollengier [Mon, 11 May 2020 15:01:15 +0000 (17:01 +0200)] 
BEE Backport bacula/src/cats/Makefile.in

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jan 10 18:12:08 2020 +0100

    Rename BEE_XXX_YYY_SRCS into EXTRA_XXX_YYY_SRCS and add --disable-bee ./configure option

4 years agoFix possible sscanf overflows
Eric Bollengier [Fri, 1 May 2020 12:52:56 +0000 (14:52 +0200)] 
Fix possible sscanf overflows

4 years agoFix overflow from malicious FD reported by Pasi Saarinen
Eric Bollengier [Fri, 1 May 2020 12:50:00 +0000 (14:50 +0200)] 
Fix overflow from malicious FD reported by Pasi Saarinen

4 years agoBEE Backport bacula/src/dird/verify.c
Eric Bollengier [Fri, 24 Apr 2020 16:20:13 +0000 (18:20 +0200)] 
BEE Backport bacula/src/dird/verify.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 7 15:43:50 2019 +0100

    Print Job message in Verify Jobs when the number of files found is not the one expected

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 27 14:54:12 2018 +0200

    Do not use static buffer in level_to_str()

Author: Wanderlei Huttel <wanderleihuttel@gmail.com>
Date:   Wed Jul 26 13:30:26 2017 +0200

    Enhance verify job report from bug 2249

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 8 21:05:13 2016 +0100

    Add accurate mode to verify data

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Aug 26 13:57:34 2013 +0200

    Merge Filename table to File

4 years agoBEE Backport bacula/src/dird/vbackup.c
Eric Bollengier [Fri, 24 Apr 2020 16:08:27 +0000 (18:08 +0200)] 
BEE Backport bacula/src/dird/vbackup.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 20 12:07:53 2019 +0100

    Allow to run a VirtualFull on a single Job

    A VirtualFull on a single Job is similar to a Copy job, except that we use
    the File list to generate the BSR instead of using the JobMedia table.

    It enables to skip files in the job copy.

Author: Kern Sibbald <kern@sibbald.com>
Date:   Tue Nov 22 12:11:18 2016 +0100

    Add run when option that permits duration or existing long date/time specification

Author: Thomas Lohman <thomasl@mtl.mit.edu>
Date:   Thu Jan 14 11:27:24 2016 +0100

    Implement MaxVirtualFullInterval

4 years agoBEE Backport bacula/src/dird/ua_update.c
Eric Bollengier [Fri, 24 Apr 2020 16:08:22 +0000 (18:08 +0200)] 
BEE Backport bacula/src/dird/ua_update.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 24 10:27:09 2020 +0200

    Add update jobid=x reviewed=y command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Dec 14 10:16:15 2018 +0100

    Add update command to set the Job comment field

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

4 years agoBEE Backport bacula/src/dird/ua_tree.c
Eric Bollengier [Fri, 24 Apr 2020 16:08:09 +0000 (18:08 +0200)] 
BEE Backport bacula/src/dird/ua_tree.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 25 15:01:33 2020 +0100

    Change !BEEF to COMMUNITY

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Dec 2 16:09:07 2019 +0100

    Fix compilation with COMMUNITY

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Oct 17 14:30:22 2019 +0200

    Fix uid/gid restore ACL after refactoring

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Aug 14 14:23:03 2019 +0200

    Move acl/permission BEEF code to bee_XXX.c/h files

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 18 18:07:24 2016 +0200

    Add DirectoryACL and UserIdACL directives to the Console resource

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 22 15:20:17 2012 +0100

    Display a warning during restore if a Delta sequence is missing

4 years agoBEE Backport bacula/src/dird/ua_status.c
Eric Bollengier [Fri, 24 Apr 2020 16:07:54 +0000 (18:07 +0200)] 
BEE Backport bacula/src/dird/ua_status.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jan 8 17:08:18 2020 +0100

    Fix #5833 Modify 'status schedule' to display only jobs starting after the 'time' parameter if set

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jan 8 17:14:59 2020 +0100

    Fix issue with 'status schedule' command using .api 2

    The last schedule item was displayed two times

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Aug 28 11:07:49 2019 +0200

    Fix #5372 about segfault in status schedule command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 19 11:32:35 2019 +0200

    Fix openssl TLS1.3 warning with the "status network" command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jul 8 18:19:00 2019 +0200

    Add RTT estimation to the 'status network' command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Sep 19 14:19:22 2017 +0200

    Enhance "status schedule" function to allow multiple job= and client= filters

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Mar 21 15:10:06 2017 +0100

    add list_resource_limits() to daemon status (part1)

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 17 11:58:53 2017 +0100

    cloud: Update "status dir" output to display "SD Downloading/Uploading from/to Cloud" job status

Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Jan 4 18:52:08 2013 +0100

    Add Demo to the -? output if demo version

    Conflicts:

            bacula/src/dird/dird.c
            bacula/src/tools/dbcheck.c

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun Dec 18 12:44:06 2011 +0100

    Start status command to list and clear shared storage

4 years agoBEE Backport bacula/src/dird/ua_select.c
Norbert Bizet [Fri, 24 Apr 2020 16:07:35 +0000 (18:07 +0200)] 
BEE Backport bacula/src/dird/ua_select.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

Author: Norbert Bizet <norbert.bizet@baculasystems.com>
Date:   Mon May 22 16:36:40 2017 +0200

    cloud: Add "Manual" cloud upload option and add truncate option to the upload command.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 14 11:13:55 2017 +0100

    cloud: Add cache pruning functions

4 years agoBEE Backport bacula/src/dird/ua_run.c
Eric Bollengier [Fri, 24 Apr 2020 16:07:21 +0000 (18:07 +0200)] 
BEE Backport bacula/src/dird/ua_run.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jan 6 10:29:11 2020 +0100

    Fix #5834 Do not prompt for the job status when jobid is provided in the resume command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Oct 3 14:19:15 2018 +0200

    Explain the different fields displayed in the Plugin Restore Options menu

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Oct 9 17:38:40 2017 +0200

    Add PluginFeatures interface and the RestoreListFiles feature to the Director

    In this commit, we cleanup a lot of code that was not designed correctly. Plugins
    were able to create specific RestoreObjects to trigger special code on the Director
    side during the restore. Now, the Director will ask the Plugins directly if they
    need to receive the list of the selected files. A side effect is that if the test-plugin
    or the ndmp plugin are installed, we will send the list of files for each restore job.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jan 19 11:44:11 2017 +0100

    Add jobuser/jobgroup restore options

Author: Kern Sibbald <kern@sibbald.com>
Date:   Wed Dec 21 18:34:08 2011 +0100

    First cut restart job

    This UI is crude and temporary. Much to be done to get it
    right

4 years agoBEE Backport bacula/src/dird/ua_restore.c
Eric Bollengier [Fri, 24 Apr 2020 16:05:23 +0000 (18:05 +0200)] 
BEE Backport bacula/src/dird/ua_restore.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 24 14:10:43 2017 +0200

    Add "noautoparent" restore command option to disable the automatic parent directory selection

    At this time, when we select a directory, we mark parent directories for
    the restore automatically.

    In the NDMP restore process, at this time, when we select a directory
    entry, the entire content is restored recursively.

    This option can be used to not select automatically parent directories
    during a restore session.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Oct 9 17:38:40 2017 +0200

    Add PluginFeatures interface and the RestoreListFiles feature to the Director

    In this commit, we cleanup a lot of code that was not designed correctly. Plugins
    were able to create specific RestoreObjects to trigger special code on the Director
    side during the restore. Now, the Director will ask the Plugins directly if they
    need to receive the list of the selected files. A side effect is that if the test-plugin
    or the ndmp plugin are installed, we will send the list of files for each restore job.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Oct 6 15:01:55 2017 +0200

    Fix #3183 issue with VSS restore using a SQL table via BWeb or BAT

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jan 19 11:44:11 2017 +0100

    Add jobuser/jobgroup restore options

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 18 18:07:24 2016 +0200

    Add DirectoryACL and UserIdACL directives to the Console resource

4 years agoBEE Backport bacula/src/dird/ua_purge.c
Eric Bollengier [Fri, 24 Apr 2020 16:04:14 +0000 (18:04 +0200)] 
BEE Backport bacula/src/dird/ua_purge.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Oct 4 09:20:43 2019 +0200

    Do not purge running jobs in purge_job_list_from_catalog()

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue May 17 11:16:02 2016 +0200

    Add BEEF marks for FileMedia feature

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 5 18:55:10 2016 +0200

    Implement FileMedia feature and FO_OFFSETS for plugin

     - Allow plugins to use the FO_OFFSETS option
     - Add SQL support in cats
     - Add bvfs commands
     - Add FileMedia handling in the Storage Daemon
     - Add use FO_OFFSETS option in test plugin
     - Add new sql scripts to configure.in
     - Update catalog version to 1018

Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Apr 17 18:33:35 2015 +0200

    Refactor DB engine to be class based

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jun 27 11:51:35 2013 +0200

    Fix #7777 about a warning message when using purge action=truncate command

4 years agoBEE Backport bacula/src/dird/ua_prune.c
Eric Bollengier [Fri, 24 Apr 2020 16:03:52 +0000 (18:03 +0200)] 
BEE Backport bacula/src/dird/ua_prune.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Sep 10 11:20:51 2019 +0200

    Disable Volume pruning based on Volume Retention when it is set to 0

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Oct 4 14:58:15 2017 +0200

    Fix #3194 about displaying a message when trying to prune a non Full/Used volume

4 years agoBEE Backport bacula/src/dird/ua_output.c
Eric Bollengier [Fri, 24 Apr 2020 16:03:35 +0000 (18:03 +0200)] 
BEE Backport bacula/src/dird/ua_output.c

This commit is the result of the squash of the following main commits:

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue May 21 18:32:30 2019 +0200

    re-activate command "show console" and display ACLs

    - "root" console can display any console resource
    - restricted console can only display its own ressource
    - Display all ACLs
      - use the name of the ACL define in the RES_ITEM

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 27 14:54:12 2018 +0200

    Do not use static buffer in level_to_str()

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Sep 21 10:43:33 2017 +0200

    Add alias "list restoreobjects" for "list pluginrestoreconf"

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Sep 20 17:12:19 2017 +0200

    Allow integer objecttype in list pluginrestoreconf command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue May 17 11:16:02 2016 +0200

    Add BEEF marks for FileMedia feature

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 5 18:55:10 2016 +0200

    Implement FileMedia feature and FO_OFFSETS for plugin

     - Allow plugins to use the FO_OFFSETS option
     - Add SQL support in cats
     - Add bvfs commands
     - Add FileMedia handling in the Storage Daemon
     - Add use FO_OFFSETS option in test plugin
     - Add new sql scripts to configure.in
     - Update catalog version to 1018

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Nov 10 16:05:48 2015 +0100

    Implement new options in list command

    It is possible to use the following arguments:
     - order=asc/desc
     - joberrors
     - jobstatus=T
     - client=xxx

    *list jobs
    +-------+--------------+---------------------+------+
    | jobid | name         | starttime           | type |
    +-------+--------------+---------------------+------+
    |     1 | backup       | 2015-11-10 14:21:38 | B    |
    |     2 | RestoreFiles | 2015-11-10 14:21:44 | R    |
    |     3 | backup       | 2015-11-10 14:21:56 | B    |
    |     4 | RestoreFiles | 2015-11-10 14:22:00 | R    |
    +-------+--------------+---------------------+------+
    *list jobs order=desc
    +-------+--------------+---------------------+------+
    | jobid | name         | starttime           | type |
    +-------+--------------+---------------------+------+
    |     4 | RestoreFiles | 2015-11-10 14:22:00 | R    |
    |     3 | backup       | 2015-11-10 14:21:56 | B    |
    |     2 | RestoreFiles | 2015-11-10 14:21:44 | R    |
    |     1 | backup       | 2015-11-10 14:21:38 | B    |
    +-------+--------------+---------------------+------+
    *list jobs order=desc limit=1
    +-------+--------------+---------------------+------+
    | jobid | name         | starttime           | type |
    +-------+--------------+---------------------+------+
    |     4 | RestoreFiles | 2015-11-10 14:22:00 | R    |
    +-------+--------------+---------------------+------+

4 years agoBEE Backport bacula/src/dird/ua_label.c
Eric Bollengier [Fri, 24 Apr 2020 16:03:26 +0000 (18:03 +0200)] 
BEE Backport bacula/src/dird/ua_label.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

4 years agoBEE Backport bacula/src/dird/ua_dotcmds.c
Eric Bollengier [Fri, 24 Apr 2020 16:02:21 +0000 (18:02 +0200)] 
BEE Backport bacula/src/dird/ua_dotcmds.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 5 17:34:56 2020 +0100

    More work for the queryParameter interface. Complete NDMP implementation

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 3 19:00:46 2020 +0100

    Add queryParameter() plugin interface

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 1 10:23:55 2019 +0200

    Fix #5394 Adjust .volstatus to what "update volume volstatus=" can accept

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu May 16 10:40:49 2019 +0200

    Fix #5053 about BVFS commands not compatible with ACLs wildcards

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 27 14:54:12 2018 +0200

    Do not use static buffer in level_to_str()

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Mar 22 09:47:01 2018 +0100

    rework .bvfs command to pass jobid=0

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jan 31 14:21:19 2018 +0100

    Fix #3496 about bvfs offset parameter ignored

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Thu Jan 11 12:48:27 2018 +0100

    Implementation of .ls command for Plugins.

    The plugin=... parameter is added to .ls command which should be the name of
    the plugin with all required plugin parameters in the form found in fileset
    Plugin=... directive. The plugin should implement a special listing=<path>
    parameter for estimate job to use this functionality. The .ls command path=...
    parameter is sent as listing=<path> for Plugin, so user can inform a Plugin
    what he expecits to listing.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Dec 1 22:25:04 2017 +0100

    tray-monitor : restore wizard.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Nov 20 16:53:02 2017 +0100

    bvfs: Fix hardlink selection issue with subdirectories

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Nov 14 15:54:00 2017 +0100

    Fix race condition between setip and the access to CLIENT::address()

    Fix concurrency issue between setAddress() and address()
    we need to copy the address in an argument, the variable can be
    freed at any time.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Sat Nov 11 14:54:26 2017 +0100

    bvfs: Add function bvfs_delete_filed for plugins that requires to delete a catalog entry

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Nov 9 15:01:55 2017 +0100

    bvfs: Add filename and path arguments to .bvfs_version

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Sep 19 10:06:33 2017 +0200

    Fix #3165 the Runscript Console feature

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Sep 12 13:32:24 2017 +0200

    bvfs: Add clients= option to .bvfs_get_jobids to handle clusters

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Nov 1 11:47:04 2016 +0100

    More work on DirectoryACL and UserIdACL code

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Oct 31 19:44:35 2016 +0100

    Allow to use glob in directoryACL from BVFS

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 18 18:07:24 2016 +0200

    Add DirectoryACL and UserIdACL directives to the Console resource

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jun 30 20:53:53 2016 +0200

    Add new RestoreClientAcl/BackupClientAcl console directives

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue May 17 11:16:02 2016 +0200

    Add BEEF marks for FileMedia feature

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon May 2 14:46:56 2016 +0200

    Allow to specify a jobid in .bvfs filters

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon May 2 09:28:22 2016 +0200

    Add count argument to .bvfs_get_jobids function to return the number of jobs for a client

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 5 18:55:10 2016 +0200

    Implement FileMedia feature and FO_OFFSETS for plugin

     - Allow plugins to use the FO_OFFSETS option
     - Add SQL support in cats
     - Add bvfs commands
     - Add FileMedia handling in the Storage Daemon
     - Add use FO_OFFSETS option in test plugin
     - Add new sql scripts to configure.in
     - Update catalog version to 1018

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat Jul 20 18:55:54 2013 +0200

    Fix seg fault bug 7901 bsock released during cancel

Author: Eric Bollengier <eric.bollengier@baculasystems.com>
Date:   Mon Feb 18 14:31:07 2013 +0100

    bvfs: Respect Console ACL in bvfs API

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Nov 14 16:24:18 2012 +0100

    Add .ls command to browse client with bconsole

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jun 18 16:04:37 2012 +0200

    Add filename= to .bvfs_lsfiles and job=, ujobid= to .bvfs_get_jobid

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 14 15:33:40 2012 +0100

    Add .bvfs_update_fv command to build the bfileview cache

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Sun Feb 12 19:20:04 2012 +0100

    Use dedicated connection in bvfs only when needed

4 years agoBEE Backport bacula/src/dird/ua_collect.c
Eric Bollengier [Fri, 24 Apr 2020 16:01:57 +0000 (18:01 +0200)] 
BEE Backport bacula/src/dird/ua_collect.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 17 18:33:43 2020 +0200

    Update Bacula Systems Copyright

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

4 years agoBEE Backport bacula/src/dird/ua_cmds.c
Eric Bollengier [Fri, 24 Apr 2020 16:01:19 +0000 (18:01 +0200)] 
BEE Backport bacula/src/dird/ua_cmds.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 24 10:27:09 2020 +0200

    Add update jobid=x reviewed=y command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 4 15:41:15 2020 +0100

    Fix compilation of community version + move dedup configuration functions to external file

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jan 8 17:08:18 2020 +0100

    Fix #5833 Modify 'status schedule' to display only jobs starting after the 'time' parameter if set

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jan 6 10:29:11 2020 +0100

    Fix #5834 Do not prompt for the job status when jobid is provided in the resume command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jul 8 18:19:00 2019 +0200

    Add RTT estimation to the 'status network' command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Jun 18 15:12:54 2019 +0200

    Fix #5173 about incorrect behavior of the "delete pool" command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jan 7 09:50:23 2019 +0100

    cloud: Fix #4457 about an harmless message "Catalog VolCloudParts mismatch" with the cloud list command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Oct 31 10:26:57 2018 +0100

    Fix #3574 Add "clients" option to the "help list" output

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Oct 19 16:33:13 2018 +0200

    Make "scan" keyword in update help command optional

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Fri Sep 7 11:20:03 2018 +0200

    Change 'Collector' resource name into 'Statistics'.

    The patch introduce a Statistics resource in place of Collector one used
    before. It changes the 'collect' command into 'statistics' one and
    '.status collector' into '.status statistics'. No other functionalities
    were changed.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Fri May 25 14:25:00 2018 +0200

    Add two new collect command output.

    Now the collect support a three output formats:
    - simple - as $metric=$value
    - full - with all metric attributes in single line
    - json - with all metric attributes as JSON array of metric objects

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 16 16:38:30 2018 +0200

    Fix #3824 about incorrect setdebug command description

Author: Norbert Bizet <norbert.bizet@baculasystems.com>
Date:   Mon May 22 16:36:40 2017 +0200

    cloud: Add "Manual" cloud upload option and add truncate option to the upload command.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu May 11 09:57:26 2017 +0200

    Fix #2822 about list jobs order=xxx description in the help command

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun Feb 2 18:47:08 2014 +0100

    Removed Dir Python module

4 years agoBEE Backport bacula/src/dird/ua_acl.c
Eric Bollengier [Fri, 24 Apr 2020 16:00:48 +0000 (18:00 +0200)] 
BEE Backport bacula/src/dird/ua_acl.c

This commit is the result of the squash of the following main commits:

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue May 21 18:32:30 2019 +0200

    re-activate command "show console" and display ACLs

    - "root" console can display any console resource
    - restricted console can only display its own ressource
    - Display all ACLs
      - use the name of the ACL define in the RES_ITEM

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jun 18 15:40:30 2018 +0200

    Allow glob type expression in Console ACL lists

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jun 30 20:53:53 2016 +0200

    Add new RestoreClientAcl/BackupClientAcl console directives

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun Sep 23 14:31:40 2012 +0200

    Add first cut bconsjson and bdirjson

4 years agoBEE Backport bacula/src/dird/ua.h
Eric Bollengier [Fri, 24 Apr 2020 15:59:59 +0000 (17:59 +0200)] 
BEE Backport bacula/src/dird/ua.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jan 19 11:44:11 2017 +0100

    Add jobuser/jobgroup restore options

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 18 18:07:24 2016 +0200

    Add DirectoryACL and UserIdACL directives to the Console resource

4 years agoBEE Backport bacula/src/dird/snapshot.c
Eric Bollengier [Fri, 24 Apr 2020 15:59:39 +0000 (17:59 +0200)] 
BEE Backport bacula/src/dird/snapshot.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

4 years agoBEE Backport bacula/src/dird/run_conf.c
Eric Bollengier [Fri, 24 Apr 2020 15:59:29 +0000 (17:59 +0200)] 
BEE Backport bacula/src/dird/run_conf.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 20 14:53:33 2019 +0100

    Add FD Calls Director feature to ease client behind NAT access

     - Implement scheduler in Client side to activate the feature
     - Refactor Run resource between the director and the file daemon
     - Allow to use the Director resource to connect a Director for the proxy command and the FDCallsDir
     - Add FDCallsDir state in show client
     - Add code to handle permanent connections bsock_meeting

    New Directive
     FileDaemon:Director:FDCallsDir=<yes/no>
     FileDaemon:Director:FDCallsDirReconnect=<time>
     FileDaemon:Director:FDCallsDirSchedule=<resource>

     Director:Client:FDCallsDir=<yes/no>

    New Resource
     FileDaemon:Schedule

4 years agoBEE Backport bacula/src/dird/restore.c
Eric Bollengier [Fri, 24 Apr 2020 15:59:08 +0000 (17:59 +0200)] 
BEE Backport bacula/src/dird/restore.c

This commit is the result of the squash of the following main commits:

Author: Norbert Bizet <norbert.bizet@baculasystems.com>
Date:   Fri Dec 29 14:42:55 2017 +0100

    initialize replace to avoid compiler warning.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Oct 9 17:38:40 2017 +0200

    Add PluginFeatures interface and the RestoreListFiles feature to the Director

    In this commit, we cleanup a lot of code that was not designed correctly. Plugins
    were able to create specific RestoreObjects to trigger special code on the Director
    side during the restore. Now, the Director will ask the Plugins directly if they
    need to receive the list of the selected files. A side effect is that if the test-plugin
    or the ndmp plugin are installed, we will send the list of files for each restore job.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jan 19 11:44:11 2017 +0100

    Add jobuser/jobgroup restore options

4 years agoBEE Backport bacula/src/dird/query.sql
Eric Bollengier [Fri, 24 Apr 2020 15:58:59 +0000 (17:58 +0200)] 
BEE Backport bacula/src/dird/query.sql

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 21 10:43:31 2017 +0100

    Fix #2640 about a reference to the source directory in query.sql file

4 years agoBEE Backport bacula/src/dird/protos.h
Eric Bollengier [Fri, 24 Apr 2020 15:58:30 +0000 (17:58 +0200)] 
BEE Backport bacula/src/dird/protos.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 4 15:41:15 2020 +0100

    Fix compilation of community version + move dedup configuration functions to external file

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue May 21 18:32:30 2019 +0200

    re-activate command "show console" and display ACLs

    - "root" console can display any console resource
    - restricted console can only display its own ressource
    - Display all ACLs
      - use the name of the ACL define in the RES_ITEM

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 14 11:47:15 2018 +0100

    Cleanup MaxPoolBytes related functions

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Oct 9 17:38:40 2017 +0200

    Add PluginFeatures interface and the RestoreListFiles feature to the Director

    In this commit, we cleanup a lot of code that was not designed correctly. Plugins
    were able to create specific RestoreObjects to trigger special code on the Director
    side during the restore. Now, the Director will ask the Plugins directly if they
    need to receive the list of the selected files. A side effect is that if the test-plugin
    or the ndmp plugin are installed, we will send the list of files for each restore job.

Author: Norbert Bizet <norbert.bizet@baculasystems.com>
Date:   Mon May 22 16:36:40 2017 +0200

    cloud: Add "Manual" cloud upload option and add truncate option to the upload command.

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun Apr 15 14:05:31 2012 +0200

    Add autochanger group code

4 years agoBEE Backport bacula/src/lib/org_dird_quota.c
Eric Bollengier [Fri, 24 Apr 2020 15:58:13 +0000 (17:58 +0200)] 
BEE Backport bacula/src/lib/org_dird_quota.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Mar 6 19:28:35 2020 +0100

    Fix community build

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Mar 6 16:25:13 2020 +0100

    Move MaxPoolBytes checks in bee files

4 years agoBEE Backport bacula/src/dird/next_vol.c
Eric Bollengier [Fri, 24 Apr 2020 15:57:49 +0000 (17:57 +0200)] 
BEE Backport bacula/src/dird/next_vol.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Sep 10 11:20:51 2019 +0200

    Disable Volume pruning based on Volume Retention when it is set to 0

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 14 10:41:10 2018 +0100

    Adjust WrittenBytes for aligned devices

4 years agoBEE Backport bacula/src/dird/newvol.c
Eric Bollengier [Fri, 24 Apr 2020 15:57:02 +0000 (17:57 +0200)] 
BEE Backport bacula/src/dird/newvol.c

4 years agoBEE Backport bacula/src/dird/msgchan.c
Eric Bollengier [Fri, 24 Apr 2020 15:56:41 +0000 (17:56 +0200)] 
BEE Backport bacula/src/dird/msgchan.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 5 20:38:00 2019 +0200

    Fix bsscanf again with empty strings at the end of line

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 5 18:15:16 2019 +0200

    Fix empty string with sscanf (Not sure we want to track all places where it can happen)

4 years agoBEE Backport bacula/src/dird/mac_sql.c
Eric Bollengier [Fri, 24 Apr 2020 15:56:17 +0000 (17:56 +0200)] 
BEE Backport bacula/src/dird/mac_sql.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Aug 16 18:15:00 2019 +0200

    Fix PoolUncopiedJob query for MySQL

4 years agoBEE Backport bacula/src/dird/job.c
Eric Bollengier [Fri, 24 Apr 2020 15:55:17 +0000 (17:55 +0200)] 
BEE Backport bacula/src/dird/job.c

This commit is the result of the squash of the following main commits:

Author: Ana Emilia Machado de Arruda <emiliaarruda@gmail.com>
Date:   Mon Feb 24 16:54:42 2020 +0100

    Add SSL connections to director SQL code

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 15 10:54:17 2019 +0200

    Fix get_or_create_pool_record() to use the argument rather than jcr->pool

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Tue Jul 10 17:18:17 2018 +0200

    Add support for bacula.jobs.* metrics for backup job.

4 years agoBEE Backport bacula/src/dird/inc_conf.c
Eric Bollengier [Fri, 24 Apr 2020 15:54:54 +0000 (17:54 +0200)] 
BEE Backport bacula/src/dird/inc_conf.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Mar 28 17:50:03 2019 +0100

    Fix #4792 about incorrect FileSet { Options {} } not detected (accurate, basejob and verify)

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu May 8 11:40:18 2014 +0200

    Rework dedup directives

4 years agoBEE Backport bacula/src/dird/fd_cmds.c
Eric Bollengier [Fri, 24 Apr 2020 15:54:44 +0000 (17:54 +0200)] 
BEE Backport bacula/src/dird/fd_cmds.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jan 31 09:04:45 2020 +0100

    Fix #5913 About a typo on a job message when the Fileset was modified

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jun 6 10:56:33 2019 +0200

    Fix #2289 Display information about the fileset modification time when upgrading to a Full backup

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Mar 28 10:10:19 2019 +0100

    Display detailed reason why a Job upgraded to Full

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 25 18:32:11 2019 +0100

    Rename MaximumConnectionTime to ReconnectionTime, Run to Connect and ConnectToDir to AllowFDConnections

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 20 14:53:33 2019 +0100

    Add FD Calls Director feature to ease client behind NAT access

     - Implement scheduler in Client side to activate the feature
     - Refactor Run resource between the director and the file daemon
     - Allow to use the Director resource to connect a Director for the proxy command and the FDCallsDir
     - Add FDCallsDir state in show client
     - Add code to handle permanent connections bsock_meeting

    New Directive
     FileDaemon:Director:FDCallsDir=<yes/no>
     FileDaemon:Director:FDCallsDirReconnect=<time>
     FileDaemon:Director:FDCallsDirSchedule=<resource>

     Director:Client:FDCallsDir=<yes/no>

    New Resource
     FileDaemon:Schedule

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 27 11:04:51 2018 +0200

    Fix #3769 about compatibility issue with Bacula FD 7.4 and 9.0

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 27 14:54:12 2018 +0200

    Do not use static buffer in level_to_str()

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Thu Jan 11 12:48:27 2018 +0100

    Implementaion of .ls command for Plugins.

    The plugin=... parameter is added to .ls command which should be the name of
    the plugin with all required plugin parameters in the form found in fileset
    Plugin=... directive. The plugin should implement a special listing=<path>
    parameter for estimate job to use this functionality. The .ls command path=...
    parameter is sent as listing=<path> for Plugin, so user can inform a Plugin
    what he expecits to listing.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Dec 11 20:59:31 2017 +0100

    Prefix feature messages with 2000

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Dec 7 10:46:56 2017 +0100

    Fix memory leak after a protocol error in get_plugin_feature()

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Dec 6 21:47:25 2017 +0100

    Replace fd->recv() with bget_dirmsg(fd) in get_plugin_features()

    Unexpected messages can come from the FileDaemon during the PluginFeatures
    exchange. We can use bget_dirmsg() to handle them.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Oct 9 17:38:40 2017 +0200

    Add PluginFeatures interface and the RestoreListFiles feature to the Director

    In this commit, we cleanup a lot of code that was not designed correctly. Plugins
    were able to create specific RestoreObjects to trigger special code on the Director
    side during the restore. Now, the Director will ask the Plugins directly if they
    need to receive the list of the selected files. A side effect is that if the test-plugin
    or the ndmp plugin are installed, we will send the list of files for each restore job.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Aug 26 13:57:34 2013 +0200

    Merge Filename table to File

4 years agoBEE Backport bacula/src/dird/dird_conf.h
Eric Bollengier [Fri, 24 Apr 2020 15:54:31 +0000 (17:54 +0200)] 
BEE Backport bacula/src/dird/dird_conf.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 5 12:00:41 2020 +0100

    Fix *json segfault on OpenBSD

    In memcpy(&res_all, res, sizeof(res_all));

    The res_all is likely bigger than res itself. We
    copy too much data, and on OpenBSD, we get segfaults.

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 14:56:33 2019 +0200

    PSK: Add new "TLS PSK Enable" directive to all resources

    - add the field to the resources
    - create default "psk_ctx" CONTEXT for each of them at startup

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 25 18:32:11 2019 +0100

    Rename MaximumConnectionTime to ReconnectionTime, Run to Connect and ConnectToDir to AllowFDConnections

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 20 14:53:33 2019 +0100

    Add FD Calls Director feature to ease client behind NAT access

     - Implement scheduler in Client side to activate the feature
     - Refactor Run resource between the director and the file daemon
     - Allow to use the Director resource to connect a Director for the proxy command and the FDCallsDir
     - Add FDCallsDir state in show client
     - Add code to handle permanent connections bsock_meeting

    New Directive
     FileDaemon:Director:FDCallsDir=<yes/no>
     FileDaemon:Director:FDCallsDirReconnect=<time>
     FileDaemon:Director:FDCallsDirSchedule=<resource>

     Director:Client:FDCallsDir=<yes/no>

    New Resource
     FileDaemon:Schedule

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 22 10:14:44 2019 +0100

    Add AllowIncompleteJobs Job directive

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Dec 21 10:11:06 2018 +0100

    Add Director:Autoprune directive to control globally the autoprune feature

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 18 18:07:24 2016 +0200

    Add DirectoryACL and UserIdACL directives to the Console resource

4 years agoBEE Backport bacula/src/dird/dird_conf.c
Eric Bollengier [Fri, 24 Apr 2020 15:54:24 +0000 (17:54 +0200)] 
BEE Backport bacula/src/dird/dird_conf.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 28 10:09:09 2020 +0100

    Disable VirtualFullBackupPool and MaxVirtualFullInterval for BEE

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 5 12:00:41 2020 +0100

    Fix *json segfault on OpenBSD

    In memcpy(&res_all, res, sizeof(res_all));

    The res_all is likely bigger than res itself. We
    copy too much data, and on OpenBSD, we get segfaults.

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue May 21 18:32:30 2019 +0200

    re-activate command "show console" and display ACLs

    - "root" console can display any console resource
    - restricted console can only display its own ressource
    - Display all ACLs
      - use the name of the ACL define in the RES_ITEM

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri May 10 18:22:09 2019 +0200

    Change default directive value AllowIncompleteJobs to keep the existing behavior

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Apr 9 11:10:50 2019 +0200

    PSK: call free_psk_context() instead of free_tls_context() when appropriate

    - FYI both functions are just aliases

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Apr 9 17:43:43 2019 +0200

    PSK: set default "TLS PSK Enable" to "no" when SSL is not available

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 14:56:33 2019 +0200

    PSK: Add new "TLS PSK Enable" directive to all resources

    - add the field to the resources
    - create default "psk_ctx" CONTEXT for each of them at startup

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 25 17:43:09 2019 +0100

    Make Director:Client:Address field optionnal when ConnectToDirector=yes

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 25 18:32:11 2019 +0100

    Rename MaximumConnectionTime to ReconnectionTime, Run to Connect and ConnectToDir to AllowFDConnections

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 20 14:53:33 2019 +0100

    Add FD Calls Director feature to ease client behind NAT access

     - Implement scheduler in Client side to activate the feature
     - Refactor Run resource between the director and the file daemon
     - Allow to use the Director resource to connect a Director for the proxy command and the FDCallsDir
     - Add FDCallsDir state in show client
     - Add code to handle permanent connections bsock_meeting

    New Directive
     FileDaemon:Director:FDCallsDir=<yes/no>
     FileDaemon:Director:FDCallsDirReconnect=<time>
     FileDaemon:Director:FDCallsDirSchedule=<resource>

     Director:Client:FDCallsDir=<yes/no>

    New Resource
     FileDaemon:Schedule

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Dec 21 10:11:06 2018 +0100

    Add Director:Autoprune directive to control globally the autoprune feature

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Mon May 28 11:24:30 2018 +0200

    Add a new Director configuration resource: Collector.

    A Collector resource defines statistics collector thread. This thread
    will grab Bacula internal statistics and save them into a defined
    backend which is a direct Collector Type parameter. We will support a
    two collector backend types: CSV and Graphite.
    An example of Collector configuration:
    Collector {
            Name = "CSV Collector"
            Interval = 30 seconds
            Type = CSV
            File = "/tmp/stat.csv"
            Metrics = "bacula.jobs"
            Metrics = "bacula.volumes"
    }

    Collector {
            Name = "Graphite Collector"
            Type = Graphite
            Host = 192.168.0.1
            Port = 9000
            Interval = 5 minutes
            Prefix = "srv01"
    }

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 27 15:38:07 2018 +0100

    Fix MaxPoolBytes display in show command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 13 14:17:22 2018 +0100

    Add MaximumPoolBytes directive to director configuration

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Apr 20 15:59:46 2017 +0200

    Add mutex to resource globals code

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat Apr 15 17:49:57 2017 +0200

    Make enable/disable Job,Client,... globals

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat Apr 8 11:02:41 2017 +0200

    Create resource globals that remain set after a reload

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Oct 18 18:07:24 2016 +0200

    Add DirectoryACL and UserIdACL directives to the Console resource

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun Apr 15 14:05:31 2012 +0200

    Add autochanger group code

Author: Eric Bollengier <eric@eb.homelinux.org>
Date:   Wed Feb 16 14:06:13 2011 +0100

    Add %h option in runscript to get client address

4 years agoBEE Backport bacula/src/dird/dird.c
Eric Bollengier [Fri, 24 Apr 2020 15:53:51 +0000 (17:53 +0200)] 
BEE Backport bacula/src/dird/dird.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Jan 14 15:09:05 2020 +0100

    Add specific checks when TLS PSK is not available in SSL library

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 14:56:33 2019 +0200

    PSK: Add new "TLS PSK Enable" directive to all resources

    - add the field to the resources
    - create default "psk_ctx" CONTEXT for each of them at startup

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 25 17:43:09 2019 +0100

    Make Director:Client:Address field optionnal when ConnectToDirector=yes

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 25 18:32:11 2019 +0100

    Rename MaximumConnectionTime to ReconnectionTime, Run to Connect and ConnectToDir to AllowFDConnections

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 20 14:53:33 2019 +0100

    Add FD Calls Director feature to ease client behind NAT access

     - Implement scheduler in Client side to activate the feature
     - Refactor Run resource between the director and the file daemon
     - Allow to use the Director resource to connect a Director for the proxy command and the FDCallsDir
     - Add FDCallsDir state in show client
     - Add code to handle permanent connections bsock_meeting

    New Directive
     FileDaemon:Director:FDCallsDir=<yes/no>
     FileDaemon:Director:FDCallsDirReconnect=<time>
     FileDaemon:Director:FDCallsDirSchedule=<resource>

     Director:Client:FDCallsDir=<yes/no>

    New Resource
     FileDaemon:Schedule

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 14 19:04:17 2019 +0100

    Fix #4676 about deadlock when reloading the configuration after a SIGHUP

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 18 09:55:50 2018 +0200

    Fix #3745 update the client SQL record after a reload

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 22 17:39:23 2018 +0100

    Fix #2414 about a deadlock with the reload command when using the Counter resource

4 years agoTweak spaces
Git Backport Process [Fri, 24 Apr 2020 15:52:58 +0000 (17:52 +0200)] 
Tweak spaces

4 years agoBEE Backport bacula/src/dird/dir_plugins.c
Eric Bollengier [Fri, 24 Apr 2020 15:52:49 +0000 (17:52 +0200)] 
BEE Backport bacula/src/dird/dir_plugins.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 24 17:51:50 2020 +0200

    Use variable for director plugin license

4 years agoBEE Backport bacula/src/dird/catreq.c
Eric Bollengier [Fri, 24 Apr 2020 15:48:02 +0000 (17:48 +0200)] 
BEE Backport bacula/src/dird/catreq.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 6 11:51:01 2020 +0100

    Fix #3246 Do not create volumes when the disk space is low

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue May 14 15:06:33 2019 +0200

    Add filename and digest to message "SHA1 digest not same FileIndex=XXX"

    - add a second error line to the "well known" error message below
    127.0.0.1-dir: catreq.c:726-28 SHA1 digest not same FileIndex=244 as attributes FI=243
    127.0.0.1-dir: catreq.c:728-28 Error detected between digest[244]="yCFO7M/N96jiPwBIBYUKA50iFVE" and name[243]="/home/bac/workspace/bee/regress/build/platforms/alpha/bigfile"

Author: Kern Sibbald <kern@sibbald.com>
Date:   Mon Oct 1 11:38:02 2018 +0200

    Implement WORM support

Author: Kern Sibbald <kern@sibbald.com>
Date:   Mon Aug 13 18:19:51 2018 +0200

    Permit negative FileIndex values in the catalog

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Oct 10 14:12:30 2017 +0200

    Replace Job=%127s with JobId=%ld in protocol

    - do the same for Create_filemedia that is not in the Community

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Dec 1 14:52:59 2016 +0100

    Implement VolCatCloudParts - Not yet set

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue May 17 11:16:02 2016 +0200

    Add BEEF marks for FileMedia feature

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 5 18:55:10 2016 +0200

    Implement FileMedia feature and FO_OFFSETS for plugin

     - Allow plugins to use the FO_OFFSETS option
     - Add SQL support in cats
     - Add bvfs commands
     - Add FileMedia handling in the Storage Daemon
     - Add use FO_OFFSETS option in test plugin
     - Add new sql scripts to configure.in
     - Update catalog version to 1018

Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Jun 5 08:25:08 2015 +0200

    Use db_lock()/unlock() around JobMedia creation transaction

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Jun 4 12:23:03 2015 +0200

    Implement JobMedia queueing + new Dir, SD versions

Author: Kern Sibbald <kern@sibbald.com>
Date:   Wed Jan 15 23:05:50 2014 +0100

    Change mig_jcr to wjcr

4 years agoBEE Backport bacula/src/dird/bsr.c
Eric Bollengier [Fri, 24 Apr 2020 15:47:01 +0000 (17:47 +0200)] 
BEE Backport bacula/src/dird/bsr.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Oct 9 17:38:40 2017 +0200

    Add PluginFeatures interface and the RestoreListFiles feature to the Director

    In this commit, we cleanup a lot of code that was not designed correctly. Plugins
    were able to create specific RestoreObjects to trigger special code on the Director
    side during the restore. Now, the Director will ask the Plugins directly if they
    need to receive the list of the selected files. A side effect is that if the test-plugin
    or the ndmp plugin are installed, we will send the list of files for each restore job.

4 years agoBEE Backport bacula/src/dird/bdirjson.c
Eric Bollengier [Fri, 24 Apr 2020 15:45:51 +0000 (17:45 +0200)] 
BEE Backport bacula/src/dird/bdirjson.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 5 12:00:41 2020 +0100

    Fix *json segfault on OpenBSD

    In memcpy(&res_all, res, sizeof(res_all));

    The res_all is likely bigger than res itself. We
    copy too much data, and on OpenBSD, we get segfaults.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Jan 14 15:09:05 2020 +0100

    Add specific checks when TLS PSK is not available in SSL library

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Dec 11 16:20:59 2019 +0100

    Fix #5660 about Runscript issue with RunsWhen=Always

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon May 27 17:06:45 2019 +0200

    Fix #5092 about a segfault in bdirjson with Runscripts defined in JobDefs

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 25 18:32:11 2019 +0100

    Rename MaximumConnectionTime to ReconnectionTime, Run to Connect and ConnectToDir to AllowFDConnections

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 25 17:43:09 2019 +0100

    Make Director:Client:Address field optionnal when ConnectToDirector=yes

4 years agoBEE Backport bacula/src/dird/backup.c
Eric Bollengier [Fri, 24 Apr 2020 15:45:34 +0000 (17:45 +0200)] 
BEE Backport bacula/src/dird/backup.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 14:56:45 2019 +0200

    PSK: Modify authentication in each daemon to support PSK

    - use AuthenticateBase class

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 22 10:14:44 2019 +0100

    Add AllowIncompleteJobs Job directive

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 12 15:34:58 2019 +0100

    Check JobMedia validity after an incomplete job

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 27 14:54:12 2018 +0200

    Do not use static buffer in level_to_str()

Author: Thomas Lohman <thomasl@mtl.mit.edu>
Date:   Thu Jan 14 11:27:24 2016 +0100

    Implement MaxVirtualFullInterval

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Feb 10 13:55:51 2011 +0100

    First cut restart Jobs

4 years agoBEE Backport bacula/src/dird/autoprune.c
Eric Bollengier [Fri, 24 Apr 2020 15:44:53 +0000 (17:44 +0200)] 
BEE Backport bacula/src/dird/autoprune.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri May 17 16:58:03 2019 +0200

    Fix #5057 Block prune_volumes() with Director::Autoprune directive

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Dec 21 10:11:06 2018 +0100

    Add Director:Autoprune directive to control globally the autoprune feature

4 years agoBEE Backport bacula/src/dird/authenticate.c
Alain Spineux [Fri, 24 Apr 2020 15:44:43 +0000 (17:44 +0200)] 
BEE Backport bacula/src/dird/authenticate.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Feb 25 16:43:49 2020 +0100

    Enable Comm Compression only for compatible community FD

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Dec 2 16:09:07 2019 +0100

    Fix compilation with COMMUNITY

Author: Alain Spineux <alain@baculasystems.com>
Date:   Thu May 9 15:11:49 2019 +0200

    fix fdcalldir connection not TLS-PSK encrypted

    - the code was just missing

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Apr 12 04:55:10 2019 +0200

    PSK: encrypt copy jobs (SD-SD )

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 10 08:38:39 2019 +0200

    Fix FDCallsDir hello protocol

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 18:25:24 2019 +0200

    PSK: cleanup authentication and replace sscanf with scan_string()

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 14:56:45 2019 +0200

    PSK: Modify authentication in each daemon to support PSK

    - use AuthenticateBase class

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Jun 4 12:23:03 2015 +0200

    Implement JobMedia queueing + new Dir, SD versions

Author: Kern Sibbald <kern@sibbald.com>
Date:   Wed Aug 7 23:22:14 2013 +0200

    Add component versions + enable comm compress by version

4 years agoBEE Backport bacula/src/dird/admin.c
Eric Bollengier [Fri, 24 Apr 2020 15:44:26 +0000 (17:44 +0200)] 
BEE Backport bacula/src/dird/admin.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Nov 23 10:20:13 2018 +0100

    Fix small memory leak with Admin job

4 years agoBEE Backport bacula/src/dird/Makefile.in
Eric Bollengier [Fri, 24 Apr 2020 15:44:09 +0000 (17:44 +0200)] 
BEE Backport bacula/src/dird/Makefile.in

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jan 10 18:12:08 2020 +0100

    Rename BEE_XXX_YYY_SRCS into EXTRA_XXX_YYY_SRCS and add --disable-bee ./configure option

Author: Kern Sibbald <kern@sibbald.com>
Date:   Wed May 20 15:19:12 2015 +0200

    Fix Makefile.in tabs

4 years agoBEE Backport bacula/src/lib/output.h
Eric Bollengier [Thu, 23 Apr 2020 15:00:54 +0000 (17:00 +0200)] 
BEE Backport bacula/src/lib/output.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 30 14:58:01 2020 +0200

    Add OutputWriter boolean type

4 years agoBEE Backport bacula/src/lib/org_lib_fips.c
Eric Bollengier [Thu, 23 Apr 2020 14:54:33 +0000 (16:54 +0200)] 
BEE Backport bacula/src/lib/org_lib_fips.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 4 15:41:15 2020 +0100

    Fix compilation of community version + move dedup configuration functions to external file

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 26 10:22:42 2020 +0100

    Move fips procedures to bee files

4 years agoBEE Backport bacula/src/lib/org_lib_dedup.h
Eric Bollengier [Thu, 23 Apr 2020 14:54:31 +0000 (16:54 +0200)] 
BEE Backport bacula/src/lib/org_lib_dedup.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 17 18:33:43 2020 +0200

    Update Bacula Systems Copyright

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 2 14:29:23 2020 +0100

    Add community version of lib/dedup.c/h files

4 years agoBEE Backport bacula/src/lib/org_lib_dedup.c
Eric Bollengier [Thu, 23 Apr 2020 14:54:26 +0000 (16:54 +0200)] 
BEE Backport bacula/src/lib/org_lib_dedup.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 17 18:33:43 2020 +0200

    Update Bacula Systems Copyright

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 2 14:29:23 2020 +0100

    Add community version of lib/dedup.c/h files

4 years agoBEE Backport bacula/src/lib/authenticatebase.cc
Alain Spineux [Thu, 23 Apr 2020 14:39:27 +0000 (16:39 +0200)] 
BEE Backport bacula/src/lib/authenticatebase.cc

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 11 12:13:09 2020 +0100

    Fix TLS/PSK requierement checks

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 9 17:09:00 2020 +0100

    Fix #6066 about TLS PSK issue with old client configured with TLS Keys

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jan 29 14:54:04 2020 +0100

    Fix issue with TLS patch for the FileDaemon

Author: Alain Spineux <alain.spineux@baculasystems.com>
Date:   Wed Jan 29 09:06:18 2020 +0100

    Fix Client Initiated backup with TLS certificate connection

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Jan 14 15:09:05 2020 +0100

    Add specific checks when TLS PSK is not available in SSL library

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Apr 9 11:13:50 2019 +0200

    PSK: Add PSK to QT's applications

    - add "TLS PSK Enable" to resources
    - update hello messages
    - rename authenticatebase.c to .cc and add the file to the QT tools
      because of a RTTI compilation problem.
      I use .cc because it works best with both bacula's CORE and QT
      to be compiled as C++ and not C
    - call init_crypto() and init_signals() in tray-monitor

4 years agoBEE Backport bacula/src/lib/worker.c
Henrique [Thu, 23 Apr 2020 14:37:40 +0000 (16:37 +0200)] 
BEE Backport bacula/src/lib/worker.c

This commit is the result of the squash of the following main commits:

Author: Henrique Faria <hfaria020@gmail.com>
Date:   Wed Jul 25 09:39:01 2018 -0300

    android: Removed usages of pthread_cancel(), which is not available on Android

4 years agoBEE Backport bacula/src/lib/util.c
Eric Bollengier [Thu, 23 Apr 2020 14:34:07 +0000 (16:34 +0200)] 
BEE Backport bacula/src/lib/util.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 17 12:59:43 2020 +0100

    Move dedup functions in separted files

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jan 14 20:32:10 2019 +0100

    Fix xattr on CIFS share

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Sep 20 17:10:58 2018 +0200

    Add xattr_list_append() function to manipulate the listxattr() list

4 years agoBEE Backport bacula/src/lib/unittests.h
Eric Bollengier [Thu, 23 Apr 2020 14:33:50 +0000 (16:33 +0200)] 
BEE Backport bacula/src/lib/unittests.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Mar 26 10:17:48 2020 +0100

    Modify ok() and nok() to return a boolean in the unittest lib

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 27 20:46:39 2020 +0100

    Display local variables when a unittest is on error

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 26 09:50:29 2020 +0100

    Use Bacula Systems copyright for bcollector/bsock files

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Sep 6 15:54:35 2018 +0200

    Add a function to control the unittest output

4 years agoBEE Backport bacula/src/lib/unittests.c
Eric Bollengier [Thu, 23 Apr 2020 14:33:44 +0000 (16:33 +0200)] 
BEE Backport bacula/src/lib/unittests.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Mar 27 21:15:51 2020 +0100

    Add is() and isnt() functions to unittest module

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Mar 26 10:17:48 2020 +0100

    Modify ok() and nok() to return a boolean in the unittest lib

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 27 20:46:39 2020 +0100

    Display local variables when a unittest is on error

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 26 09:50:29 2020 +0100

    Use Bacula Systems copyright for bcollector/bsock files

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Mar 29 15:01:31 2019 +0100

    Fix unittest compilation

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 20 14:53:33 2019 +0100

    Add FD Calls Director feature to ease client behind NAT access

     - Implement scheduler in Client side to activate the feature
     - Refactor Run resource between the director and the file daemon
     - Allow to use the Director resource to connect a Director for the proxy command and the FDCallsDir
     - Add FDCallsDir state in show client
     - Add code to handle permanent connections bsock_meeting

    New Directive
     FileDaemon:Director:FDCallsDir=<yes/no>
     FileDaemon:Director:FDCallsDirReconnect=<time>
     FileDaemon:Director:FDCallsDirSchedule=<resource>

     Director:Client:FDCallsDir=<yes/no>

    New Resource
     FileDaemon:Schedule

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Sep 6 15:54:35 2018 +0200

    Add a function to control the unittest output

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Fri Aug 17 14:33:44 2018 +0200

    Update unittests.

    Update unittests for alist/ilist classes.

    Fix alist compile error.

    Update bsnprintf unittests.

    Update compile for bsnprintf.

    Update bsock unittests - add data communication verification.

    Update bsockcore unittests - add data communication verification.

    Create all-unittests regression script for Bacula unit tests.

    Add bstat unit tests to regression.

    Add CRC32 unittests.

    Add crc32 unittests to regression.

    Update output.c unittests and add regression test.

    Update unittests, add conditional lockmanager initialization.

    When some unit tests does not require and use a lock manager and make
    tests very fast then lock manager cleanup function is executed before
    any lock manager thread has a chence to start which result in leaked
    memory false positive.

    Create base64 unit tests.

    Add base64 unit tests regression script.

    Small update to all-unittests.

    Update unittests for flist.

    Add flist regression unittests.

    Add fnmatch unittests and regression tests.

    The current unittests fail on on of the already prepared tests. Until
    resolved the overall unittests will fail on this one.

    Update output.c unittests.

    Update fnmatch.c unittests.

    Until resolved the unit test 13 will be disabled.

    Update sellist unittests.

    Update sha1 unittests.

    Update htable unittests.

    Update unittests fir ConfigFile/ini.c.

    The real fix for segv on collect-reload-test.

    Update unittests for lockmgr.c.

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Thu Aug 2 15:44:48 2018 +0200

    Add unit tests support code.

4 years agoBEE Backport bacula/src/lib/tls.c
Alain Spineux [Thu, 23 Apr 2020 14:33:28 +0000 (16:33 +0200)] 
BEE Backport bacula/src/lib/tls.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Jan 14 15:09:05 2020 +0100

    Add specific checks when TLS PSK is not available in SSL library

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jan 13 16:16:23 2020 +0100

    Fix TLS compilation for OpenBSD 6.6

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Aug 16 16:54:59 2019 +0200

    Fix EOF detection on TLS sockets

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 12 17:12:38 2019 +0200

    Add support for OpenSSL 1.1.1 and TLS 1.3

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 9 14:48:36 2019 +0200

    Fix compilation for --without-openssl

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 9 10:53:51 2019 +0200

    Fix bwlimit issue with TLS connections

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 17:43:44 2019 +0200

    PSK: bacula "lib" files cleanup

    - remove Dmsg()
    - add comment

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 17:42:28 2019 +0200

    PSK: modify bnet_tls_(client|server) to pass the shared key via the SSL*

    - instead of the CTX, because for SD <-> FD the auth_key is generated by
       the director

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Mar 12 18:21:11 2019 +0100

    PSK: make Bacula's core files related to TLS and authentication ready

    - add PSK code to tls.c
    - modify cram_md5_respond() to support early "STARTLS"
      - the recv() must be done first to see if we get a starttls command
        or if we continue cram-md5the old way
    - skip TLS verification part when PSK is used

Author: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Date:   Wed Nov 8 14:37:31 2017 +0100

    crypto: remove support for ancient openssl

    OpenSSL 1.0.2 is still supported. Everything earlier is not so the old
    code for compat can be thrown away, especially the 0.9.8 support.

    TLSv1_method() should not be used and SSLv23_method() should be
    preferred because the latter supports TLS1.0…1.2 while the former _only_
    tries TLS1.0.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 27 11:54:14 2015 +0200

    Force use of newer TLS protocols

4 years agoBEE Backport bacula/src/lib/status.h
Alain Spineux [Thu, 23 Apr 2020 14:33:12 +0000 (16:33 +0200)] 
BEE Backport bacula/src/lib/status.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 19 11:31:25 2018 +0100

    Fix compilation on Solaris

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 19 09:36:03 2018 +0100

    Fix compiler warning with rlimit display in list_resource_limits

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Mar 21 15:10:06 2017 +0100

    add list_resource_limits() to daemon status (part1)

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Jan 28 09:15:23 2014 +0100

    Implement .api v2 and use computer friendly output to status commands.

    For example, we can use the following code:

    static void api_list_dir_status_header(UAContext *ua)
    {
       OutputWriter wt;
       ua->send_msg("%s",
        wt.get_output(
         OT_STRING, "name",        my_name,
         OT_STRING, "version",     VERSION " (" BDATE ")",
         OT_STRING, "uname",       HOST_OS " " DISTNAME " " DISTVER,
         OT_UTIME,  "started",     daemon_start_time,
         OT_UTIME,  "reloaded",    last_reload_time,
         OT_INT,    "jobs_run",    num_jobs_run,
         OT_INT,    "jobs_running",job_count(),
         OT_END
           ));
    }

    It will display

    name=bacula-dir
    version=6.6.3 (12Dec13)
    uname=....

    The OutputWriter class can be configured to use a custom
    separator (\t or \n for example), custom date format, and
    will handle basic formating such as time, string, integer,
    list of strings, etc...

4 years agoBEE Backport bacula/src/lib/signal.c
Henrique [Thu, 23 Apr 2020 14:32:57 +0000 (16:32 +0200)] 
BEE Backport bacula/src/lib/signal.c

This commit is the result of the squash of the following main commits:

Author: Henrique <henrique.faria@baculasystems.com>
Date:   Tue Oct 8 15:24:45 2019 -0300

    android: enabled File Daemon crash backtraces

4 years agoBEE Backport bacula/src/lib/scan.c
Alain Spineux [Thu, 23 Apr 2020 14:32:40 +0000 (16:32 +0200)] 
BEE Backport bacula/src/lib/scan.c

This commit is the result of the squash of the following main commits:

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 13:57:48 2019 +0200

    new scan_string() to be used where "old" bsscanf() don't work

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Sun Apr 7 11:56:45 2019 +0200

    Make bsscanf compatible with the old bsscanf

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 5 20:38:00 2019 +0200

    Fix bsscanf again with empty strings at the end of line

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Apr 5 13:56:08 2019 +0200

    fix bsscanf continue parsing + more unittest

    - error is used for error and not for a "no match"
      - error in the format string like %b where 'b' is not a valid
        format character
    - the return code let you know HOW many "real" matches you got
    - lot of new tests
       - check respect string limit
       - check negative numbers, up to the 63/64 bit limits

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Apr 5 17:48:19 2019 +0200

    Fix issue with scan

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Mar 29 14:28:11 2019 +0100

    Fix bsscanf() returns the wrong number of conversion

    - returns the right number of successful conversion
      bsscanf("1", "%d %d",..)==2 must be 1
    - mimic sscanf for empty strings
    - return EOF instead of doing a segfault when the input or fmt string are
      NULL

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Mar 29 09:32:09 2019 +0100

    regress: Add unittest scan_test to test bsscanf() in scan.c

    - test bsscanf()

Author: Kern Sibbald <kern@sibbald.com>
Date:   Mon Feb 7 15:01:09 2011 +0100

    Add negative numbers to bsscanf

4 years agoBEE Backport bacula/src/lib/res.c
Eric Bollengier [Thu, 23 Apr 2020 14:32:28 +0000 (16:32 +0200)] 
BEE Backport bacula/src/lib/res.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 14 19:04:17 2019 +0100

    Fix #4676 about deadlock when reloading the configuration after a SIGHUP

4 years agoBEE Backport bacula/src/lib/protos.h
Alain Spineux [Thu, 23 Apr 2020 14:32:08 +0000 (16:32 +0200)] 
BEE Backport bacula/src/lib/protos.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 27 20:47:10 2020 +0100

    Add gdb_print_local() function to display local variables via gdb

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 17 12:59:43 2020 +0100

    Move dedup functions in separted files

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Nov 29 11:07:36 2019 +0100

    Fix #5755 about segfault in bdirjson with very long strings to quote

Author: Henrique <henrique.faria@baculasystems.com>
Date:   Mon Nov 18 23:46:16 2019 -0300

    cdp: added 'group' Plugin Parameter

Author: Henrique <henrique.faria@baculasystems.com>
Date:   Wed Nov 13 02:23:37 2019 -0300

    cdp: added plugin param 'user' and fixed segfault on get_user_home_directory(...)

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Aug 16 16:33:22 2019 +0200

    add new gdb_stack_trace() that call gdb to do a stack trace

    - need to call gdb twice, one to find the right thread from the thread
      systag

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed May 1 15:24:21 2019 +0200

    Accept |script in the Client Address directive

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 13:57:48 2019 +0200

    new scan_string() to be used where "old" bsscanf() don't work

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 17:42:28 2019 +0200

    PSK: modify bnet_tls_(client|server) to pass the shared key via the SSL*

    - instead of the CTX, because for SD <-> FD the auth_key is generated by
       the director

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Mar 12 18:21:11 2019 +0100

    PSK: make Bacula's core files related to TLS and authentication ready

    - add PSK code to tls.c
    - modify cram_md5_respond() to support early "STARTLS"
      - the recv() must be done first to see if we get a starttls command
        or if we continue cram-md5the old way
    - skip TLS verification part when PSK is used

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Sep 20 17:10:58 2018 +0200

    Add xattr_list_append() function to manipulate the listxattr() list

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jun 18 15:40:30 2018 +0200

    Allow glob type expression in Console ACL lists

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri May 12 17:32:04 2017 +0200

    Add bget_max_mlock() to limit the amount of memory that can be locked

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri May 12 15:58:42 2017 +0200

    Add bget_memory() function

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 23 10:05:32 2016 +0100

    Fix #1674 About Solaris Intel SD checksum errors

4 years agoBEE Backport bacula/src/lib/plugins.h
Eric Bollengier [Thu, 23 Apr 2020 14:30:25 +0000 (16:30 +0200)] 
BEE Backport bacula/src/lib/plugins.h

This commit is the result of the squash of the following main commits:

4 years agoBEE Backport bacula/src/lib/plugins.c
Eric Bollengier [Thu, 23 Apr 2020 14:29:53 +0000 (16:29 +0200)] 
BEE Backport bacula/src/lib/plugins.c

4 years agoBEE Backport bacula/src/lib/parse_conf.h
Eric Bollengier [Thu, 23 Apr 2020 14:29:10 +0000 (16:29 +0200)] 
BEE Backport bacula/src/lib/parse_conf.h

This commit is the result of the squash of the following main commits:

Author: Alain Spineux <alain@baculasystems.com>
Date:   Thu Oct 24 16:23:10 2019 +0200

    dedup: create a Dedup resource based on the dedup directive in Storage

    - to stay compatible with old dedup directive in the Storage resource

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue May 21 13:03:09 2019 +0200

    Fix compilation for HPUX

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 20 14:53:33 2019 +0100

    Add FD Calls Director feature to ease client behind NAT access

     - Implement scheduler in Client side to activate the feature
     - Refactor Run resource between the director and the file daemon
     - Allow to use the Director resource to connect a Director for the proxy command and the FDCallsDir
     - Add FDCallsDir state in show client
     - Add code to handle permanent connections bsock_meeting

    New Directive
     FileDaemon:Director:FDCallsDir=<yes/no>
     FileDaemon:Director:FDCallsDirReconnect=<time>
     FileDaemon:Director:FDCallsDirSchedule=<resource>

     Director:Client:FDCallsDir=<yes/no>

    New Resource
     FileDaemon:Schedule

4 years agoBEE Backport bacula/src/lib/parse_conf.c
Eric Bollengier [Thu, 23 Apr 2020 14:25:54 +0000 (16:25 +0200)] 
BEE Backport bacula/src/lib/parse_conf.c

This commit is the result of the squash of the following main commits:

Author: Alain Spineux <alain@baculasystems.com>
Date:   Thu Oct 24 16:23:10 2019 +0200

    dedup: create a Dedup resource based on the dedup directive in Storage

    - to stay compatible with old dedup directive in the Storage resource

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 20 14:53:33 2019 +0100

    Add FD Calls Director feature to ease client behind NAT access

     - Implement scheduler in Client side to activate the feature
     - Refactor Run resource between the director and the file daemon
     - Allow to use the Director resource to connect a Director for the proxy command and the FDCallsDir
     - Add FDCallsDir state in show client
     - Add code to handle permanent connections bsock_meeting

    New Directive
     FileDaemon:Director:FDCallsDir=<yes/no>
     FileDaemon:Director:FDCallsDirReconnect=<time>
     FileDaemon:Director:FDCallsDirSchedule=<resource>

     Director:Client:FDCallsDir=<yes/no>

    New Resource
     FileDaemon:Schedule

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 29 09:34:49 2016 +0100

    Modify configuration parser to use local variables

4 years agoBEE Backport bacula/src/lib/output.c
Eric Bollengier [Thu, 23 Apr 2020 14:13:22 +0000 (16:13 +0200)] 
BEE Backport bacula/src/lib/output.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Mar 30 14:58:01 2020 +0200

    Add OutputWriter boolean type

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Mar 19 18:09:32 2020 +0100

    more work on QT5 for windows

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 3 19:01:21 2020 +0100

    Allow to use empty options in OutputWriter

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Jan 28 09:15:23 2014 +0100

    Implement .api v2 and use computer friendly output to status commands.

    For example, we can use the following code:

    static void api_list_dir_status_header(UAContext *ua)
    {
       OutputWriter wt;
       ua->send_msg("%s",
        wt.get_output(
         OT_STRING, "name",        my_name,
         OT_STRING, "version",     VERSION " (" BDATE ")",
         OT_STRING, "uname",       HOST_OS " " DISTNAME " " DISTVER,
         OT_UTIME,  "started",     daemon_start_time,
         OT_UTIME,  "reloaded",    last_reload_time,
         OT_INT,    "jobs_run",    num_jobs_run,
         OT_INT,    "jobs_running",job_count(),
         OT_END
           ));
    }

    It will display

    name=bacula-dir
    version=6.6.3 (12Dec13)
    uname=....

    The OutputWriter class can be configured to use a custom
    separator (\t or \n for example), custom date format, and
    will handle basic formating such as time, string, integer,
    list of strings, etc...

4 years agoBEE Backport bacula/src/lib/openssl.c
Eric Bollengier [Thu, 23 Apr 2020 14:02:24 +0000 (16:02 +0200)] 
BEE Backport bacula/src/lib/openssl.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Mar 19 18:09:32 2020 +0100

    more work on QT5 for windows

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jan 8 14:40:42 2020 +0100

    Fix #5829 about OpenBSD compilation issue with TLS 1.3 code

    The SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY seems to not be defined
    on OpenBSD. Probably a compatibility issue.

    Compiling openssl.c
    openssl.c: In function 'void openssl_post_errors(JCR*, int, const char*)':
    openssl.c:67: error: 'SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY' was not declared in this scope

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Jul 19 16:13:26 2019 +0200

    Fix OpenSSL TLS 1.3 message with ssl3_read_bytes:application data after close notify

      Ignore this error that is SSL_shutdown() specific and is new to TLS 1.3
      ERR=error:14094123:SSL routines:ssl3_read_bytes:application data after close notify
      we are doing the TLS shutdown.
      This can happens at multiple place but the message appears only on
      the DIR because at that time the connection with the DIR is often "terminated"

4 years agoBEE Backport bacula/src/lib/openssl.c
Alain Spineux [Thu, 23 Apr 2020 13:58:53 +0000 (15:58 +0200)] 
BEE Backport bacula/src/lib/openssl.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Mar 19 18:09:32 2020 +0100

    more work on QT5 for windows

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jan 8 14:40:42 2020 +0100

    Fix #5829 about OpenBSD compilation issue with TLS 1.3 code

    The SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY seems to not be defined
    on OpenBSD. Probably a compatibility issue.

    Compiling openssl.c
    openssl.c: In function 'void openssl_post_errors(JCR*, int, const char*)':
    openssl.c:67: error: 'SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY' was not declared in this scope

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Jul 19 16:13:26 2019 +0200

    Fix OpenSSL TLS 1.3 message with ssl3_read_bytes:application data after close notify

      Ignore this error that is SSL_shutdown() specific and is new to TLS 1.3
      ERR=error:14094123:SSL routines:ssl3_read_bytes:application data after close notify
      we are doing the TLS shutdown.
      This can happens at multiple place but the message appears only on
      the DIR because at that time the connection with the DIR is often "terminated"

4 years agoBEE Backport bacula/src/lib/openssl-compat.h
Eric Bollengier [Thu, 23 Apr 2020 13:58:35 +0000 (15:58 +0200)] 
BEE Backport bacula/src/lib/openssl-compat.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Sep 11 16:16:12 2018 +0200

    Improve OpenBSD support with openssl

4 years agoBEE Backport bacula/src/lib/message.h
Norbert Bizet [Thu, 23 Apr 2020 13:58:29 +0000 (15:58 +0200)] 
BEE Backport bacula/src/lib/message.h

This commit is the result of the squash of the following main commits:

Author: Norbert Bizet <norbert.bizet@baculasystems.com>
Date:   Mon Jun 24 07:52:56 2019 -0400

    cloud: mv debug level to 50 and add a DT_CLOUD tag

4 years agoBEE Backport bacula/src/lib/message.c
Eric Bollengier [Thu, 23 Apr 2020 13:57:46 +0000 (15:57 +0200)] 
BEE Backport bacula/src/lib/message.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 31 15:28:13 2020 +0200

    Send ERROR/FATAL queued messages to trace file as well

Author: Norbert Bizet <norbert.bizet@baculasystems.com>
Date:   Mon Jun 24 07:52:56 2019 -0400

    cloud: mv debug level to 50 and add a DT_CLOUD tag

Author: Henrique <henrique.faria@baculasystems.com>
Date:   Tue May 21 13:26:25 2019 -0300

    android: Add log screen that shows tray-monitor trace file

Author: Alain Spineux <alain@baculasystems.com>
Date:   Thu Dec 7 18:28:41 2017 +0100

    BEE is not defined, use !defined(COMMUNITY) instead

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Oct 10 14:16:50 2017 +0200

    Add support for daemon message queue

    - backport from community 9.0

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue May 20 19:24:33 2014 +0200

    add "dde" debug tag aka DT_DDE

4 years agoAdd POOL_MEM.handle() function to get POOLMEM** from POOL_MEM
Eric Bollengier [Thu, 23 Apr 2020 13:56:44 +0000 (15:56 +0200)] 
Add POOL_MEM.handle() function to get POOLMEM** from POOL_MEM

4 years agoAdd author note on lockmanager
Eric Bollengier [Thu, 23 Apr 2020 13:56:22 +0000 (15:56 +0200)] 
Add author note on lockmanager

4 years agoBEE Backport bacula/src/lib/lockmgr.c
Eric Bollengier [Thu, 23 Apr 2020 13:56:16 +0000 (15:56 +0200)] 
BEE Backport bacula/src/lib/lockmgr.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 26 09:53:15 2020 +0100

    Add author note on lockmanager

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Dec 2 16:09:07 2019 +0100

    Fix compilation with COMMUNITY

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Oct 17 09:39:33 2019 +0200

    Fix lockmgr_test unittest

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Aug 22 15:34:17 2019 +0200

    Fix issue with bthread_get_thread_id when the lock manager is not yet ready

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 14 19:04:17 2019 +0100

    Fix #4676 about deadlock when reloading the configuration after a SIGHUP

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Aug 28 15:14:10 2015 +0200

    Add test in the lock manager to detect when a mutex is still locked at the end of thread

4 years agoBEE Backport bacula/src/lib/lib.h
Eric Bollengier [Thu, 23 Apr 2020 13:56:07 +0000 (15:56 +0200)] 
BEE Backport bacula/src/lib/lib.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 14 14:51:34 2020 +0100

    Move dedup init/release backup functions to bee_filed_dedup

Author: Alain Spineux <alain@baculasystems.com>
Date:   Thu Mar 28 14:32:49 2019 +0100

    PSK: unify authentication into new authenticatebase.c in "bac" library

    - new unified AuthenticationBase class in lib/authenticatebase.{c,h}
    - AuthenticationBase include the code that is common to all daemons

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 20 14:53:33 2019 +0100

    Add FD Calls Director feature to ease client behind NAT access

     - Implement scheduler in Client side to activate the feature
     - Refactor Run resource between the director and the file daemon
     - Allow to use the Director resource to connect a Director for the proxy command and the FDCallsDir
     - Add FDCallsDir state in show client
     - Add code to handle permanent connections bsock_meeting

    New Directive
     FileDaemon:Director:FDCallsDir=<yes/no>
     FileDaemon:Director:FDCallsDirReconnect=<time>
     FileDaemon:Director:FDCallsDirSchedule=<resource>

     Director:Client:FDCallsDir=<yes/no>

    New Resource
     FileDaemon:Schedule

4 years agoAdd jobuser/jobgroup restore options
Eric Bollengier [Thu, 23 Apr 2020 13:55:51 +0000 (15:55 +0200)] 
Add jobuser/jobgroup restore options

4 years agoTweak comments
Kern Sibbald [Thu, 23 Apr 2020 13:55:37 +0000 (15:55 +0200)] 
Tweak comments

4 years agoBEE Backport bacula/src/lib/edit.c
Eric Bollengier [Thu, 23 Apr 2020 13:51:05 +0000 (15:51 +0200)] 
BEE Backport bacula/src/lib/edit.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jun 18 15:40:30 2018 +0200

    Allow glob type expression in Console ACL lists

4 years agoBEE Backport bacula/src/lib/dlist.h
Eric Bollengier [Thu, 23 Apr 2020 13:50:52 +0000 (15:50 +0200)] 
BEE Backport bacula/src/lib/dlist.h

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 21 13:16:04 2019 +0100

    Allow to specify a custom delete handler in dlist

4 years agoBEE Backport bacula/src/lib/dlist.c
Eric Bollengier [Thu, 23 Apr 2020 13:50:48 +0000 (15:50 +0200)] 
BEE Backport bacula/src/lib/dlist.c

This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 21 13:16:04 2019 +0100

    Allow to specify a custom delete handler in dlist

4 years agoCheck that the digest is valid before to use it
Eric Bollengier [Thu, 23 Apr 2020 13:50:31 +0000 (15:50 +0200)] 
Check that the digest is valid before to use it

4 years agoBEE Backport bacula/src/lib/bcrc32.c
Eric Bollengier [Tue, 12 May 2020 20:42:34 +0000 (22:42 +0200)] 
BEE Backport bacula/src/lib/bcrc32.c

4 years agoBEE Backport bacula/src/lib/cram-md5.c
Alain Spineux [Thu, 23 Apr 2020 13:46:37 +0000 (15:46 +0200)] 
BEE Backport bacula/src/lib/cram-md5.c

This commit is the result of the squash of the following main commits:

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 17:43:44 2019 +0200

    PSK: bacula "lib" files cleanup

    - remove Dmsg()
    - add comment

4 years agoRemove crc32.c
Eric Bollengier [Thu, 23 Apr 2020 13:48:49 +0000 (15:48 +0200)] 
Remove crc32.c