]> git.ipfire.org Git - thirdparty/bacula.git/log
thirdparty/bacula.git
4 years agoTweak spaces
Git Backport Process [Thu, 23 Apr 2020 13:37:38 +0000 (15:37 +0200)] 
Tweak spaces

4 years agobwlimit avoid sleep > 60s
Alain Spineux [Mon, 20 Apr 2020 15:13:21 +0000 (17:13 +0200)] 
bwlimit avoid sleep > 60s

    - this can happen if the BW et far away of the network/disk speed
      like 500B/s on a system > 100MB/s the ratio is 200000
      having a sleep of > 10000s is not surprising

4 years agoAdd bstrftime_c() function
Eric Bollengier [Mon, 20 Apr 2020 15:12:47 +0000 (17:12 +0200)] 
Add bstrftime_c() function

4 years agoBEE Backport bacula/src/lib/bsys.c
Eric Bollengier [Mon, 20 Apr 2020 15:11:38 +0000 (17:11 +0200)] 
BEE Backport bacula/src/lib/bsys.c

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

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

    Fix gdb_print_local() possible segfault

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:   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:   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: Alain Spineux <alain@baculasystems.com>
Date:   Fri Aug 16 16:31:59 2019 +0200

    fix stack_trace
    - sometime there is no function name, just an address, then
      call utility "addr2line"
    - when nothing works display the original line (instead of a line
      without any function name

Author: Henrique <henrique.faria@baculasystems.com>
Date:   Wed May 15 19:21:25 2019 -0300

    cdp-client: fixed compilation for Windows by creating copyfile function for Windows on bsys.c

Author: Henrique <henrique.faria@baculasystems.com>
Date:   Wed May 15 20:46:59 2019 -0300

    cdp-client: fixed copyfile function for Windows

Author: Henrique <henrique.faria@baculasystems.com>
Date:   Wed May 1 11:51:43 2019 -0300

    lib: disabled get_group_members() function on android

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

    Fix compilation on Solaris

Author: Henrique <henrique.faria@baculasystems.com>
Date:   Mon Apr 8 18:45:11 2019 -0300

    cdp-client: fixed Windows compilation

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Apr 4 22:49:45 2019 +0200

    Add functions to get users from a group and home directories for a list of users

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jan 29 14:03:52 2018 +0100

    Use bfopen() instead of fopen() for the CLOEXEC option

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Nov 28 14:11:54 2017 +0100

    new breaddir() function to replace readdir_r() + core update

    - breaddir() is a thread safe replacement for readdir_r()
    - remove any usage of readdir_r() and readdir() in the core
    - remove NAMELEN() (that was never used except for 3 uses in find_one.c)

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu May 18 09:19:01 2017 +0200

    Change bget_max_mlock() to set the maximum mlock value when the request is 0 or too large

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun May 14 08:04:41 2017 +0200

    Fix integer overflow with LL + fix unused label

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:   Fri May 12 19:18:59 2017 +0200

    Correct the bget_max_mlock() function with negative argument

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue May 26 11:43:06 2015 +0200

    Add function to copy a file in bsys.c

4 years agoBEE Backport bacula/src/lib/bsockcore.h
Eric Bollengier [Mon, 20 Apr 2020 15:10:24 +0000 (17:10 +0200)] 
BEE Backport bacula/src/lib/bsockcore.h

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

4 years agoBEE Backport bacula/src/lib/bsockcore.c
Alain Spineux [Mon, 20 Apr 2020 15:10:11 +0000 (17:10 +0200)] 
BEE Backport bacula/src/lib/bsockcore.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:49:29 2020 +0100

    Sync bsock/bcollector copyright with community

4 years agoBEE Backport bacula/src/lib/bsock.h
Alain Spineux [Mon, 20 Apr 2020 15:09:52 +0000 (17:09 +0200)] 
BEE Backport bacula/src/lib/bsock.h

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

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:   Wed Feb 26 09:49:29 2020 +0100

    Sync bsock/bcollector copyright with community

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: 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: 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:   Tue Sep 11 09:35:35 2018 +0200

    Fix warning in bsock.h

4 years agoBEE Backport bacula/src/lib/bsock.c
Eric Bollengier [Mon, 20 Apr 2020 15:09:41 +0000 (17:09 +0200)] 
BEE Backport bacula/src/lib/bsock.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 31 16:41:25 2020 +0200

    Fix #6089 about SD spooling error message not sent to the Director

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 Apr 12 15:08:11 2019 +0200

    Add some debug to BSOCK objects

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

4 years agoDo not use tcp settings for unix pipes
Eric Bollengier [Mon, 20 Apr 2020 15:08:03 +0000 (17:08 +0200)] 
Do not use tcp settings for unix pipes

4 years agoBEE Backport bacula/src/lib/bnet_server.c
Eric Bollengier [Mon, 20 Apr 2020 15:07:40 +0000 (17:07 +0200)] 
BEE Backport bacula/src/lib/bnet_server.c

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

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

    Fix HPUX compilation

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

    Fix compilation for HPUX

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Apr 12 05:00:11 2019 +0200

    BSOCKCORE::get_info() return all the info of a socket

    - the format is S.S.S.S.port_S:D.D.D.D.port_D
    - sample :
       127.0.0.1-dir[6]: bsockcore.c:464-1 OK connected to server  Storage
          daemon 127.0.0.1:8103. socket=127.0.0.1.49060:127.0.0.1.8103
       127.0.0.1-sd[1]: bnet_server.c:228-0 Accept
                                 socket=127.0.0.1.8103:127.0.0.1.49060
    - usage
       char info[2*INET6_ADDRSTRLEN+20];
       Dmsg1(50, "Accept socket=%s\n", bs->get_info(info, sizeof(info)));

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Sep 27 17:31:56 2016 +0200

    Fix cram-md5 segfault with many concurrent jobs

    The problem comes from the use of the "old" select() call
    that is limited to 1024 file descriptors. We replaced select()
    with poll() in the places where we can expect more than 1024
    open files.

    Add test procedure for the new fd_wait_data() function.
    make -C src/lib wait_test

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun Dec 22 15:29:01 2013 +0100

    Add Windows IPv6 + lots network cleanup

4 years agoBEE Backport bacula/src/lib/bnet.c
Alain Spineux [Mon, 20 Apr 2020 15:05:15 +0000 (17:05 +0200)] 
BEE Backport bacula/src/lib/bnet.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: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

4 years agoTweak correct copyright
Kern Sibbald [Mon, 20 Apr 2020 14:50:05 +0000 (16:50 +0200)] 
Tweak correct copyright

4 years agoBEE Backport bacula/src/lib/bget_msg.h
Alain Spineux [Mon, 20 Apr 2020 14:49:58 +0000 (16:49 +0200)] 
BEE Backport bacula/src/lib/bget_msg.h

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Oct 31 11:06:59 2019 +0100

    Fix compilation warning on bget_msg.h

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Sep 24 10:17:51 2019 +0200

    dedup: move all dedup code into the plugin

    - remove global variables: dedupengine and bucker_manager
    - update protocol SD<->DIR
    - extend dedup_dev and BufferedMsgSD to suuport all function
    - create "dummy" functions in dev.h
    Warning :
    - include a dedupengine use counter
    - .status storage=XXX dedupengine display all the dedupengine on the SD
     instead of the one(s) related to the "device"

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 4 11:09:05 2015 +0200

    dedup: create "loaded reference", a reference that hold embeded data

    - A reference can hold data, that is not in the DDE.
    this is mostly for small chunk of data.
    This is useful when we know a chunk will not dedup or when a chunk
    is too small.
    The metadata in STREAM_WIN32_DATA is a good candidate

    - DedupEngine::decode_ref() help in decoding reference

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Jul 14 21:00:47 2015 +0200

    add new file bget_msg.h

4 years agoBEE Backport bacula/src/lib/address_conf.c
Eric Bollengier [Mon, 20 Apr 2020 14:48:25 +0000 (16:48 +0200)] 
BEE Backport bacula/src/lib/address_conf.c

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

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

    Fix compilation for HPUX

4 years agoBEE Backport bacula/src/lib/Makefile.in
Eric Bollengier [Mon, 20 Apr 2020 14:48:20 +0000 (16:48 +0200)] 
BEE Backport bacula/src/lib/Makefile.in

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

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

    Remove hardcoded reference to libintl

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 14 15:34:23 2020 +0100

    Move bcrc32 as bee_lib_crc32

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: 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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Apr 4 22:49:59 2019 +0200

    Add bsys_test target

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: 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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 21 13:16:25 2019 +0100

    Add dlist_test to Makefile.in

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

    regress: Install unittests in $bin and execute them from here

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: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jul 5 16:10:26 2018 +0200

    Fix backport

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun Apr 2 14:44:02 2017 +0200

    Add missing row of characters in Makefile.in

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat Feb 11 08:57:36 2017 +0100

    Tweak Makefile alignments + fix stop when hitting depend: in tray-monitor configure

Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Jun 26 09:15:47 2015 +0200

    Do not compile crc32.c on Linux -- use new bcrc32.c only

4 years agoBEE Backport bacula/src/findlib/win32filter.h
Alain Spineux [Mon, 20 Apr 2020 14:45:14 +0000 (16:45 +0200)] 
BEE Backport bacula/src/findlib/win32filter.h

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

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Jul 9 14:02:24 2018 +0200

    win32: make Win32Filter handle corrupted data

    - if data looks corrupted, then Win32Filter::have_data() skip the data up
      to the end of the input stream.
    - the error flag is set when the sizes in the header are <0

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Nov 5 16:25:37 2015 +0100

    Add win32filter class

4 years agoBEE Backport bacula/src/findlib/win32filter.c
Alain Spineux [Mon, 20 Apr 2020 14:45:10 +0000 (16:45 +0200)] 
BEE Backport bacula/src/findlib/win32filter.c

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

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Jul 9 14:02:24 2018 +0200

    win32: make Win32Filter handle corrupted data

    - if data looks corrupted, then Win32Filter::have_data() skip the data up
      to the end of the input stream.
    - the error flag is set when the sizes in the header are <0

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Nov 5 18:59:02 2015 +0100

    Tweak author information

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Nov 5 16:25:37 2015 +0100

    Add win32filter class

4 years agoBEE Backport bacula/src/findlib/protos.h
Alain Spineux [Mon, 20 Apr 2020 14:44:34 +0000 (16:44 +0200)] 
BEE Backport bacula/src/findlib/protos.h

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

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

4 years agoBEE Backport bacula/src/findlib/match.c
Kern Sibbald [Mon, 20 Apr 2020 14:42:41 +0000 (16:42 +0200)] 
BEE Backport bacula/src/findlib/match.c

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

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun May 4 08:58:54 2014 +0200

    Fix dedup option scan bug

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat May 3 16:10:37 2014 +0200

    Add deduplication directives

Author: Laurent Papier <papier@tuxfan.net>
Date:   Wed May 18 23:25:30 2011 +0200

    Add LZO compression support in bacula-fd.

    Add new generic compressed streams This should make easier to
    add additional compression scheme

    Rename a few define, add an element containing compression algorithm
    in some data structures.

4 years agoBEE Backport bacula/src/findlib/fstype.c
Eric Bollengier [Mon, 20 Apr 2020 14:41:59 +0000 (16:41 +0200)] 
BEE Backport bacula/src/findlib/fstype.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 5 16:17:02 2019 +0200

    Avoid fstype warnings when the fname is empty

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Sep 19 09:19:05 2018 +0200

    Rename new cifs to cifs2 in fstype

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

4 years agoBEE Backport bacula/src/findlib/find_one.c
Alain Spineux [Mon, 20 Apr 2020 14:41:50 +0000 (16:41 +0200)] 
BEE Backport bacula/src/findlib/find_one.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Dec 19 11:07:42 2019 +0100

    win32: Fix #5801 about incorrect File=/ behavior with subvolumes in backup and estimate jobs

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Dec 14 17:05:26 2018 +0100

    Fix memory issue with the strip fileset option

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Nov 12 11:07:04 2018 +0100

    win32: Fix #4286 about the restore of a volume root directory with the hidden & system attributes

    - Detect root directories like C:\ or C:\mount_point
      and setup st_rdev=WIN32_ROOT_POINT to tell restore to not restore
      the hidden and system attributes
    - Be aware that there is 2 different "directories" (1) the parent
      directory like c:\mount_point and (2) the root directory of the volume
      that your are attaching to the parent. The attributes that you see is
      the attribute of (1) but for drive letters, their is no (1) then
      you see always (2) (that are hidden and system).
      When VSS snapshot is used

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

Author: Alain Spineux <alain@baculasystems.com>
Date:   Sat Apr 28 07:42:58 2018 +0200

    win32: Rewrite of the stat() and reparse point detection

    - combine all stat() functions
    - statDir() i& stat2() are not used anymore
    - adjuste find_one for directory symlink

4 years agoBEE Backport bacula/src/findlib/find.h
Alain Spineux [Mon, 20 Apr 2020 14:41:35 +0000 (16:41 +0200)] 
BEE Backport bacula/src/findlib/find.h

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Dec 19 11:07:42 2019 +0100

    win32: Fix #5801 about incorrect File=/ behavior with subvolumes in backup and estimate jobs

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Nov 12 11:07:04 2018 +0100

    win32: Fix #4286 about the restore of a volume root directory with the hidden & system attributes

    - Detect root directories like C:\ or C:\mount_point
      and setup st_rdev=WIN32_ROOT_POINT to tell restore to not restore
      the hidden and system attributes
    - Be aware that there is 2 different "directories" (1) the parent
      directory like c:\mount_point and (2) the root directory of the volume
      that your are attaching to the parent. The attributes that you see is
      the attribute of (1) but for drive letters, their is no (1) then
      you see always (2) (that are hidden and system).
      When VSS snapshot is used

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat May 3 16:10:37 2014 +0200

    Add deduplication directives

4 years agoBEE Backport bacula/src/findlib/find.c
Alain Spineux [Mon, 20 Apr 2020 14:41:18 +0000 (16:41 +0200)] 
BEE Backport bacula/src/findlib/find.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Dec 19 11:07:42 2019 +0100

    win32: Fix #5801 about incorrect File=/ behavior with subvolumes in backup and estimate jobs

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

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:   Mon Mar 26 18:23:06 2018 +0200

    win32: update compat.cpp "file" functions to use new path functions

    - statDir
    - stat 2
    - GetApplicationName
    - win32_chmod win32_chdir win32_mkdir
    - win32_getcwd file_open utime
    - symlink
    - stat
    - breaddir
    - opendir

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Jan 6 15:55:35 2017 +0100

    Tweak comment about fix #2334

    - add a TODO

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Jan 6 14:58:12 2017 +0100

    fix #2294 MSSQL data not deduped

    - This patch avoid for the Dedup option in FileSet to be
      overwritten by "Options" blocks that are next to one with
      the Dedup option

    - the major probleme is that in FileSet, bacula don't merge
      Option {} blocks that are next to each other, simply speaking
      only the last one is used previous options are ignored.
    - Some plugins as the mssql one use AddOptions() that create
      a new Options block and hide all already existing options

4 years agoBEE Backport bacula/src/findlib/create_file.c
Alain Spineux [Mon, 20 Apr 2020 14:40:37 +0000 (16:40 +0200)] 
BEE Backport bacula/src/findlib/create_file.c

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

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Nov 12 11:07:04 2018 +0100

    win32: Fix #4286 about the restore of a volume root directory with the hidden & system attributes

    - Detect root directories like C:\ or C:\mount_point
      and setup st_rdev=WIN32_ROOT_POINT to tell restore to not restore
      the hidden and system attributes
    - Be aware that there is 2 different "directories" (1) the parent
      directory like c:\mount_point and (2) the root directory of the volume
      that your are attaching to the parent. The attributes that you see is
      the attribute of (1) but for drive letters, their is no (1) then
      you see always (2) (that are hidden and system).
      When VSS snapshot is used

4 years agoBEE Backport bacula/src/findlib/bfile.c
Eric Bollengier [Mon, 20 Apr 2020 14:39:20 +0000 (16:39 +0200)] 
BEE Backport bacula/src/findlib/bfile.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Sep 27 14:49:44 2019 +0200

    win32: Fix "BackupWrite failed. ERR=The handle is invalid." and "ERR=The process cannot access the file because it is being used by another" with directories

    The PluginIO::open() call always returns io->status=0, the code cannot detect
    that we cannot open a file for restore.

    We use share flags to open directories, we cannot use the .restore hive trick
    with directories.

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 Apr 24 18:48:25 2018 +0200

    win32: remove FF_PKT->sys_fname attribute and unix_name_to_win32() function

    - sys_fname attribute is only used for win32 and only for debugging
    - f_name can be used instead
    - unix_name_to_win32() is only used for debugging purpose
    - sys_fname & unix_name_to_win32() are not appropriate anymore

4 years agoBEE Backport bacula/src/findlib/attribs.c
Alain Spineux [Mon, 20 Apr 2020 14:38:31 +0000 (16:38 +0200)] 
BEE Backport bacula/src/findlib/attribs.c

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: Alain Spineux <alain@baculasystems.com>
Date:   Tue Oct 23 11:13:14 2018 +0200

    win32: fix Error: findlib/attribs.c:1040 Error in GetFileAttributesExW

    - we were reading Windows attributes from the "live" filesystem instead
      of the VSS snapshot one.

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Apr 24 18:36:54 2018 +0200

    win32: win_error() parameter from POOLMEM* to const char *ofile

    - their is no reason to use a POOLMEM* and I will use a char* parameter
    - I prefer to "adjust" the type of the parameter

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Apr 24 18:48:25 2018 +0200

    win32: remove FF_PKT->sys_fname attribute and unix_name_to_win32() function

    - sys_fname attribute is only used for win32 and only for debugging
    - f_name can be used instead
    - unix_name_to_win32() is only used for debugging purpose
    - sys_fname & unix_name_to_win32() are not appropriate anymore

Author: Kern Sibbald <kern@sibbald.com>
Date:   Wed Mar 28 13:48:00 2018 +0200

    Add prepare bit to the plugin stream and handle it in the SD

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Jan 30 19:00:08 2017 +0100

    restore mtime & atime for symlink

    - use lutimes(), need HAVE_LUTIMES
    - added a #ifdef HAVE_LCHOWN because of "#define lchown chown"

4 years agoBEE Backport bacula/src/findlib/Makefile.in
Eric Bollengier [Mon, 20 Apr 2020 14:36:52 +0000 (16:36 +0200)] 
BEE Backport bacula/src/findlib/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 agoBEE Backport runres_conf.c and stub files
Eric Bollengier [Mon, 20 Apr 2020 13:57:08 +0000 (15:57 +0200)] 
BEE Backport runres_conf.c and stub files

5 years agoBEE Backport bacula/src/filed/fdcallsdir.c
Eric Bollengier [Mon, 20 Apr 2020 13:54:45 +0000 (15:54 +0200)] 
BEE Backport bacula/src/filed/fdcallsdir.c

5 years agoBEE Backport bacula/src/filed/verify_vol.c
Eric Bollengier [Mon, 20 Apr 2020 13:52:17 +0000 (15:52 +0200)] 
BEE Backport bacula/src/filed/verify_vol.c

5 years agoBEE Backport bacula/src/filed/verify.c
Alain Spineux [Mon, 20 Apr 2020 13:52:09 +0000 (15:52 +0200)] 
BEE Backport bacula/src/filed/verify.c

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

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

5 years agoBEE Backport bacula/src/filed/status.c
Eric Bollengier [Mon, 20 Apr 2020 13:51:39 +0000 (15:51 +0200)] 
BEE Backport bacula/src/filed/status.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 13 12:02:20 2020 +0100

    Fix #5948 Add ReadBytes/sec in the .api 2 output of the client status

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Aug 21 17:21:20 2019 +0200

    android: Fix segfault on android with .status running command

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Oct 18 20:34:58 2018 +0200

    Fix Filedaemon status output to handle long list of plugins

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jun 22 10:47:49 2018 +0200

    Display FileDaemon PKI variables in .status header

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 Oct 10 09:58:25 2014 +0200

    Add EFS in the client status flag list

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 10 21:40:09 2014 +0100

    Ensure that debug_level is always 64bit

5 years agoBEE Backport bacula/src/filed/restore.h
Kern Sibbald [Mon, 20 Apr 2020 13:51:28 +0000 (15:51 +0200)] 
BEE Backport bacula/src/filed/restore.h

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

Author: Kern Sibbald <kern@sibbald.com>
Date:   Wed Mar 28 13:48:00 2018 +0200

    Add prepare bit to the plugin stream and handle it in the SD

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun Jan 11 10:39:46 2015 +0100

    Separate out definitions into new header

5 years agoBEE Backport bacula/src/filed/restore.c
Alain Spineux [Mon, 20 Apr 2020 13:51:22 +0000 (15:51 +0200)] 
BEE Backport bacula/src/filed/restore.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 13 21:22:57 2020 +0100

    Move filed dedup code to org/bee files

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

    Fix #4601 About restoring Extended Attributes on symlinks

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

Author: Alain Spineux <alain@baculasystems.com>
Date:   Thu Jul 26 03:56:05 2018 +0200

    win32: Don't restore the mount point, just create the directory

    - BackupWrite() can create a mountpoint, like if we run
      the mountvol command.
    - We don't want to recreate the Windows mount point
    - mount point can only be created on an empty directory,
    - the mount point information come only at the end, when the
      content has been restored, and then the directory is not
      empty anymore.

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 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:   Sun May 31 12:33:15 2015 +0200

    Fix a number of acl and xattr bugs + give more understandable variable names

Author: Alain Spineux <alain@baculasystems.com>
Date:   Sun Apr 6 20:05:35 2014 +0200

    Beginning of dedup code

5 years agoBEE Backport bacula/src/filed/protos.h
Alain Spineux [Mon, 20 Apr 2020 13:50:47 +0000 (15:50 +0200)] 
BEE Backport bacula/src/filed/protos.h

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

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:   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: Marcin Haba <marcin.haba@bacula.pl>
Date:   Fri Apr 20 13:38:37 2018 +0200

    Fix showing PkiCipher and PkiDigest values in bfdjson output

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 29 11:49:11 2016 +0100

    Add Console resource and Remote directive to FileDaemon config file

Author: Kern Sibbald <kern@sibbald.com>
Date:   Mon Jun 23 20:18:01 2014 +0200

    Implement new capabilities comm protocol -- variables passed not yet used

5 years agoBEE Backport bacula/src/filed/job.c
Eric Bollengier [Mon, 20 Apr 2020 13:49:26 +0000 (15:49 +0200)] 
BEE Backport bacula/src/filed/job.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 14 14:47:34 2020 +0100

    Remove BEEF comment for FO_OFFSETS and encodecmd

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: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 12 14:56:08 2020 +0100

    Get queryParameters as they come

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:   Fri Dec 20 14:49:49 2019 +0100

    win32: Add subvolumes when File=X:/ and OneFS=no or when using alldrives plugin

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Dec 19 11:07:42 2019 +0100

    win32: Fix #5801 about incorrect File=/ behavior with subvolumes in backup and estimate jobs

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Dec 13 15:32:38 2019 +0100

    win32: Handle Exclude{} options when computing the drive list with File=/

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:   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:   Thu Jul 11 16:57:45 2019 +0200

    Rework SD/FD test network function

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:   Mon May 27 11:35:10 2019 +0200

    Fix hanging issue with Client Initiated Backup when using TLS/PSK

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu May 9 16:31:56 2019 +0200

    Fix small memory leak in fdcallsdir and improve SIGTERM handling

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:   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 Jul 13 14:00:14 2018 +0200

    Fix GCC 8 compiler warnings with memset() on objects

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Mar 26 14:27:18 2018 +0200

    win32: new wchar_path_2_wutf8() && wutf8_path_2_wchar()

    - both functions convet UTTF8 <-> UTF16 and
      escape/unescape invalid UTF16 stream
    - see more in documentation

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:   Wed Oct 11 10:48:00 2017 +0200

    Fix compilation warning

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

    Add PluginFeatures and the RestoreFileList interface to the client

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jun 23 17:12:24 2017 +0200

    mssql: Fix #2924 about compression issue with MSSQL plugin

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:   Wed Aug 17 10:35:11 2016 +0200

    Add "status network" command to test the connection and the bandwidth between a Client and a Storage Daemon

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 29 11:49:11 2016 +0100

    Add Console resource and Remote directive to FileDaemon config file

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Oct 2 10:26:50 2015 +0200

    dedup: add a jcr->inc_use_count() in the DedupFiledInterface constructor

    and a free_jcr in the destructor

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 11 17:53:25 2015 +0100

    Fix #951 about SDCallsClient not used during restore jobs

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 20 17:10:38 2015 +0100

    snapshot: Add EnableSnapshot directive in fileset

Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Oct 10 08:48:17 2014 +0200

    Implement Win EFS Support

     - Merge kern-refactor-backup branch with 8.1
     - Implement Win EFS simulator
     - Split win efs functions into win_efs.c
     - Add new src/filed/crypto.c file
     - Refactor backup.c, restore.c

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Aug 1 09:51:16 2014 +0200

    Tweaks replace literals by #define

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat Jul 12 20:39:38 2014 +0200

    Fix beef to build Windows community FD

Author: Kern Sibbald <kern@sibbald.com>
Date:   Mon Jun 23 20:18:01 2014 +0200

    Implement new capabilities comm protocol -- variables passed not yet used

Author: Alain Spineux <alain@baculasystems.com>
Date:   Wed May 28 22:56:08 2014 +0200

    dedup: new DedupFiledInterface class, jcr->block_quarantine -> jcr->dedup

    jcr->dedup store all information related to dedup,
    block_quarantine was not enough

    jcr->block_quarantine -> jcr->dedup->block_quarantine
    jcr->dedup->JobBytes that is "transfered" into jcr->JobBytes
    at regular interval

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue May 27 20:56:50 2014 +0200

    Add support for FileSet option Dedup=[none,storage,bothsides]

    remove all DEDUP_FORCED_CLIENT
    added STREAM_BIT_NO_DEDUPLICATION
    use FO_DEDUPLICATION and Dedup_level

    The three mode works

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon May 26 10:26:10 2014 +0200

    Work on win32 VSS snapshots

     It is now possible to have FAT32 and NTFS drives at the same time
     The system will not produce errors about the FAT32 volume, and the
     volume will be saved correctly.

     The test setup looks like:
      c:\                NTFS
        c:\mounted       NTFS
        c:\mounted\test  NTFS
      d:\                CDROM
      e:\                FAT
      f:\                NTFS

     File=/     OneFS=no
     JobId 7:     Snapshot mount point: C:\
     JobId 7:     Snapshot mount point: C:\mounted\
     JobId 7:     Snapshot mount point: C:\mounted\test\
     JobId 7:     Snapshot mount point: F:\

     *list files jobid=7
     +----------------------------+
     | filename                   |
     +----------------------------+
     | C:/test.conf               |
     | C:/mounted/test.conf       |
     | C:/mounted/test/test.conf  |
     | E:/test.conf               |
     | F:/test.conf               |
     +----------------------------+

     File=/   OneFS=yes
     JobId 15: Generate VSS snapshots. Driver="Win64 VSS"
     JobId 15:     Snapshot mount point: C:\
     JobId 15:     Snapshot mount point: F:\
     JobId 15:      C:/mounted is a different filesystem. Will not descend from C:/ into it.

     *list files jobid=15
     +----------------------------+
     | filename                   |
     +----------------------------+
     | C:/test.conf
     | F:/test.conf               |
     | E:/test.conf               |
     +----------------------------+

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri May 23 09:46:40 2014 +0200

    Tweak debug level

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue May 6 09:27:26 2014 +0200

    Handle properly WIN32 Mount points

     Create a MTAB object that is in charge to list all volumes
     and associate volumes with snapshots.

     The code is no longer using letters and mount points, the code
     is using only mount points list.

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat May 3 16:10:37 2014 +0200

    Add deduplication directives

Author: Alain Spineux <alain@baculasystems.com>
Date:   Sun Apr 6 20:05:35 2014 +0200

    Beginning of dedup code

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat Mar 8 15:48:44 2014 +0100

    Fix SDCallsClient daemon synchronization

Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Feb 21 22:58:51 2014 +0100

    Fix bsock orphanned buffers

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat Jan 4 17:30:07 2014 +0100

    Implement SD Calls Client

    which is a prerequesite for SD->SD

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Dec 30 12:26:33 2013 +0100

    Allow to use File=/ on Windows

    Using / in a Include fileset will now scan all local drives mounted
    on  [A-Z]: and include them to the current fileset.

    FileSet {
      Name = X
      Include {
         File = /
      }
    }

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Apr 16 14:02:38 2013 +0200

    Avoid bad plugin name after PluginCommand

Author: Kern Sibbald <kern@sibbald.com>
Date:   Tue Nov 20 14:16:34 2012 +0100

    Correct level detection code

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Feb 16 18:13:05 2012 +0100

    Implement component list restore info for plugin

5 years agoBEE Backport bacula/src/filed/hello.c
Kern Sibbald [Mon, 20 Apr 2020 13:48:08 +0000 (15:48 +0200)] 
BEE Backport bacula/src/filed/hello.c

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

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:   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:   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 11:49:11 2016 +0100

    Add Console resource and Remote directive to FileDaemon config file

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Aug 21 15:48:30 2014 +0200

    Fix bad caps with SDcallsClient + debug + fix seg fault on connection error

Author: Kern Sibbald <kern@sibbald.com>
Date:   Tue Jul 22 15:35:28 2014 +0200

    Finish SD-FD caps coding

Author: Kern Sibbald <kern@sibbald.com>
Date:   Tue Jul 15 14:19:44 2014 +0200

    Tweak more changes to build Windows community FD

Author: Kern Sibbald <kern@sibbald.com>
Date:   Mon Jul 14 19:26:36 2014 +0200

    Tweak strip trailing spaces in Makefile.in files

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat Jul 12 20:39:38 2014 +0200

    Fix beef to build Windows community FD

Author: Kern Sibbald <kern@sibbald.com>
Date:   Mon Jun 23 20:18:01 2014 +0200

    Implement new capabilities comm protocol -- variables passed not yet used

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun Jun 22 15:07:17 2014 +0200

    Add new FD hello.c + create capability subroutines

5 years agoBEE Backport bacula/src/filed/heartbeat.c
Alain Spineux [Mon, 20 Apr 2020 13:47:24 +0000 (15:47 +0200)] 
BEE Backport bacula/src/filed/heartbeat.c

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

Author: Alain Spineux <alain@baculasystems.com>
Date:   Wed Aug 14 10:00:50 2019 +0200

    cleanup heartbeat

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Nov 19 16:19:42 2018 +0100

    win32: Fix #4349 about a crash during restore in the heartbeat thread

    The code to stop the hearbeat will wait 140s at the maximum while
    the heartbeat can wait up to 512s per loop. It seems that the pthread_kill()
    cannot always unblock the thread waiting on bmicrosleep(). It is leading
    to a segfault while releasing the shared bsock.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Nov 28 17:55:48 2016 +0100

    Fix #2260 about segfault in bacula-fd when stopping the heartbeat thread

Author: Alain Spineux <alain@baculasystems.com>
Date:   Wed Jul 23 01:36:38 2014 +0200

    rename BSOCK::do_flowcontrol->flowcontrol_cb() into  BSOCK::send_hook_cb->bsock_send_cb()

    make the callback more universal
    add a small comment

Author: Kern Sibbald <kern@sibbald.com>
Date:   Thu Sep 5 16:37:15 2013 +0200

    Probable fix for Dir crash ticket #8427

5 years agoBEE Backport bacula/src/filed/filed_conf.h
Eric Bollengier [Mon, 20 Apr 2020 13:47:06 +0000 (15:47 +0200)] 
BEE Backport bacula/src/filed/filed_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:   Mon Mar 25 17:10:49 2019 +0100

    Rename FDCallsDir directives to ConnectToDirector

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 Jun 22 10:47:49 2018 +0200

    Display FileDaemon PKI variables in .status header

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 29 11:49:11 2016 +0100

    Add Console resource and Remote directive to FileDaemon config file

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 10 12:06:14 2015 +0100

    dedup: Add "Enable Client Rehydration" directive to replace "DedupIndexDirectory"

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Oct 24 14:02:37 2014 +0200

    dedup: new "opportunistic dedup restore" to replace "dedup client cache"
    The "opportunistic restore" principle is a replacement for the
    "dedup client cache" used in version 8.0.1.
    The goal is to avoid the transfer of chunks from the SD at restore time
    by reusing identical chunks that could be found on the target itself.
    The new design is way simpler and should perform as well.

    SEE BEEP-1000 in svn/dev/Projects/BEEP

    Conflicts:
            bacula/src/filed/backup.c

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat May 3 16:10:37 2014 +0200

    Add deduplication directives

5 years agoBEE Backport bacula/src/filed/filed_conf.c
Eric Bollengier [Mon, 20 Apr 2020 13:46:27 +0000 (15:46 +0200)] 
BEE Backport bacula/src/filed/filed_conf.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Apr 9 21:55:29 2020 +0200

    Tweak comment

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 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:10:49 2019 +0100

    Rename FDCallsDir directives to ConnectToDirector

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: Radosław Korzeniewski <radekk@inteos.pl>
Date:   Fri Jun 1 09:53:10 2018 +0200

    Add a Collector resource and thread to FD.

Author: Marcin Haba <marcin.haba@bacula.pl>
Date:   Mon Jun 19 11:02:47 2017 +0200

    Tweak comments about address validation

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Feb 29 11:49:11 2016 +0100

    Add Console resource and Remote directive to FileDaemon config file

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 10 12:06:14 2015 +0100

    dedup: Add "Enable Client Rehydration" directive to replace "DedupIndexDirectory"

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

    Rework dedup directives

5 years agoBEE Backport bacula/src/filed/filed.h
Eric Bollengier [Mon, 20 Apr 2020 13:46:09 +0000 (15:46 +0200)] 
BEE Backport bacula/src/filed/filed.h

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 13 21:22:57 2020 +0100

    Move filed dedup code to org/bee files

5 years agoBEE Backport bacula/src/filed/filed.c
Eric Bollengier [Mon, 20 Apr 2020 13:46:04 +0000 (15:46 +0200)] 
BEE Backport bacula/src/filed/filed.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 3 21:03:29 2020 +0100

    Fix issues with client initiated console and TLS certificates

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:   Tue Jul 2 10:54:30 2019 +0200

    Add FIPS support to console/fd/sd/dir

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:   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: Kern Sibbald <kern@sibbald.com>
Date:   Sat Apr 18 11:39:44 2015 +0200

    Tweak text alignment

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 10 12:06:14 2015 +0100

    dedup: Add "Enable Client Rehydration" directive to replace "DedupIndexDirectory"

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 12 17:01:05 2014 +0100

    Allow to specify debug tags with -d command switch

      bacula-dir -d 200,memory,sql

       => Set debug level to 200, and activate memory and sql tags

5 years agoBEE Backport bacula/src/filed/fd_snapshot.h
Eric Bollengier [Mon, 20 Apr 2020 13:44:52 +0000 (15:44 +0200)] 
BEE Backport bacula/src/filed/fd_snapshot.h

5 years agoBEE Backport bacula/src/filed/fd_snapshot.c
Alain Spineux [Mon, 20 Apr 2020 13:44:46 +0000 (15:44 +0200)] 
BEE Backport bacula/src/filed/fd_snapshot.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Apr 9 21:55:29 2020 +0200

    Tweak comment

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Nov 12 11:07:04 2018 +0100

    win32: Fix #4286 about the restore of a volume root directory with the hidden & system attributes

    - Detect root directories like C:\ or C:\mount_point
      and setup st_rdev=WIN32_ROOT_POINT to tell restore to not restore
      the hidden and system attributes
    - Be aware that there is 2 different "directories" (1) the parent
      directory like c:\mount_point and (2) the root directory of the volume
      that your are attaching to the parent. The attributes that you see is
      the attribute of (1) but for drive letters, their is no (1) then
      you see always (2) (that are hidden and system).
      When VSS snapshot is used

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Aug 24 14:14:43 2018 +0200

    snapshot: create bsnapshot.log in {working} instead of /tmp directory

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jul 25 17:28:42 2018 +0200

    snapshot: Add mountopts bsnapshot.conf option

    $ cat bsnapshot.conf
    mountopts=noexec,nodev             <---  default
    mountopts=/dev/vgroot/root:nouuid            <---- for one device
    mountopts=/dev/vgroot/home:nouuid,uid=backup <---- for one device

Author: Alain Spineux <alain@baculasystems.com>
Date:   Mon Mar 26 18:23:06 2018 +0200

    win32: update compat.cpp "file" functions to use new path functions

    - statDir
    - stat 2
    - GetApplicationName
    - win32_chmod win32_chdir win32_mkdir
    - win32_getcwd file_open utime
    - symlink
    - stat
    - breaddir
    - opendir

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 5 09:42:01 2015 +0100

    Add Snapshot Engine to bacula core

            Rename jcr->VSS to jcr->Snapshot and use the same variable on Linux/Windows
            Pass snapshot retention to the FD
            Add SnapshotRetention to client and job resource
            Add documentation about snapshot backend
            regress: Add snapshot script for lvm backend
            Use retry in lvm unmount procedure
            Read config file from sysconfigdir
            Load bsnapshot.cfg by default and configure bsnapshot using exepath
            Add config file to specify lvm snapshot parameters
            Control LVM free space for snapshot
            Implement OT_PINT64 in output writer, should display job speed api2 mode status command
            regress: Add test to test snapshot bconsole commands
            regress: Add test for zfs snapshot
            implement zfs driver (linux zfs driver cannot mount snapshots)
            regress: Add regress script for snapshots
            Include automatically subvolumes with onefs=no
            Handle ff->link in strip snapshot path
            Scan for subvolumes not listed in mtab
            Snapshots can be created/deleted from the catalog
            Implement path translation between snapshot
            Add JobId to Snapshot table
            Add code to execute snapshot script on the FD side
            Add more Director snapshots command
            Implement CatReq interface for Snapshots
            Implement DB snapshot functions
            the delete snapshot is now connecting to the FD, and the
            FD is calling the snapshot script with the delete argument
            Allow to specify env variable in run_command_full_output() and open_bpipe()
            Modify cmd_parser to not look for plugin name with use_name option
            Add ARG_LIST to generate nice arg1=arg2 output from db_list function
            Add tag DT_SNAPSHOT
            Add JobId in the list snapshot output
            Add list snapshot command
            Add JobId to snapshot table

5 years agoBEE Backport bacula/src/filed/fd_plugins.h
Eric Bollengier [Mon, 20 Apr 2020 13:43:50 +0000 (15:43 +0200)] 
BEE Backport bacula/src/filed/fd_plugins.h

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Sep 23 16:43:58 2019 +0200

    Add do_dedup flag to save_pkt struct

5 years agoBEE Backport bacula/src/filed/fd_plugins.c
Eric Bollengier [Mon, 20 Apr 2020 13:43:43 +0000 (15:43 +0200)] 
BEE Backport bacula/src/filed/fd_plugins.c

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Tue Mar 24 14:36:00 2020 +0100

    ndmp: Add SMTAPE incremental feature part 1

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 Jun 19 19:15:35 2019 +0200

    Fix #5168 about issue 'Second call to startRestoreFile' with parallel restore jobs with plugins

    The plugin->restoreFileStarted and plugin->createFileCalled variables are
    stored in the global FileDaemon plugin context, but these variables are
    related to jobs. We can fix the issue by moving the variables to the bContext.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Oct 29 16:59:15 2018 +0100

    Add snap_fname information for plugins

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Oct 29 18:36:44 2018 +0100

    Handle only regular files in plugin_option_handle_file()

    By default, all kind of files are going in this procedure and
    we handle only regular files. Can be extended later.

Author: Radoslaw Korzeniewski <radekk@inteos.pl>
Date:   Wed Oct 10 11:17:01 2018 +0200

    Fix the count of objects size with estimate command for plugins

Author: Kern Sibbald <kern@sibbald.com>
Date:   Tue Mar 1 21:22:26 2011 +0100

    Add extra Bacula plugin variables

5 years agoBEE Backport bacula/src/filed/crypto.c
Kern Sibbald [Mon, 20 Apr 2020 13:43:25 +0000 (15:43 +0200)] 
BEE Backport bacula/src/filed/crypto.c

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

Author: Kern Sibbald <kern@sibbald.com>
Date:   Wed Mar 28 13:48:00 2018 +0200

    Add prepare bit to the plugin stream and handle it in the SD

Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Oct 10 08:48:17 2014 +0200

    Implement Win EFS Support

     - Merge kern-refactor-backup branch with 8.1
     - Implement Win EFS simulator
     - Split win efs functions into win_efs.c
     - Add new src/filed/crypto.c file
     - Refactor backup.c, restore.c

5 years agoBEE Backport bacula/src/filed/bxattr_solaris.h
Git Backport Process [Mon, 20 Apr 2020 13:43:18 +0000 (15:43 +0200)] 
BEE Backport bacula/src/filed/bxattr_solaris.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

5 years agoBEE Backport bacula/src/filed/bxattr_solaris.c
Git Backport Process [Mon, 20 Apr 2020 13:43:14 +0000 (15:43 +0200)] 
BEE Backport bacula/src/filed/bxattr_solaris.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

5 years agoBEE Backport bacula/src/filed/bxattr_linux.c
Eric Bollengier [Mon, 20 Apr 2020 13:43:06 +0000 (15:43 +0200)] 
BEE Backport bacula/src/filed/bxattr_linux.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 Sep 18 15:52:58 2019 +0200

    Scan for CIFS xattributes on CIFS and CIFS2 filesystems

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

    Use xattr_list_append() function to check CIFS attributes

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 6 16:07:20 2018 +0200

    Add support for system.cifs_acl extended attribute

5 years agoBEE Backport bacula/src/filed/bxattr.h
Eric Bollengier [Mon, 20 Apr 2020 13:42:58 +0000 (15:42 +0200)] 
BEE Backport bacula/src/filed/bxattr.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:   Tue Sep 24 13:39:41 2019 +0200

    Fix issue with xattr/acl detection code

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 6 16:07:20 2018 +0200

    Add support for system.cifs_acl extended attribute

5 years agoBEE Backport bacula/src/filed/bxattr.c
Eric Bollengier [Mon, 20 Apr 2020 13:42:55 +0000 (15:42 +0200)] 
BEE Backport bacula/src/filed/bxattr.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:   Tue Sep 24 13:39:41 2019 +0200

    Fix issue with xattr/acl detection code

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jul 17 17:42:46 2019 +0200

    Fix AIX build

    The AIX implementation for ACL and XATTR is not yet written, so it is
    detected but the compilation doesn't work.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jul 6 16:07:20 2018 +0200

    Add support for system.cifs_acl extended attribute

5 years agoBEE Backport bacula/src/filed/bfdjson.c
Eric Bollengier [Mon, 20 Apr 2020 13:42:45 +0000 (15:42 +0200)] 
BEE Backport bacula/src/filed/bfdjson.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:   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: 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

5 years agoBEE Backport bacula/src/filed/bacula-fd.conf.in
Eric Bollengier [Mon, 20 Apr 2020 13:42:38 +0000 (15:42 +0200)] 
BEE Backport bacula/src/filed/bacula-fd.conf.in

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

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Apr 20 15:24:14 2016 +0200

    Explicitly remove the Saved message from the default Messages handler

5 years agoBEE Backport bacula/src/filed/bacl.h
Eric Bollengier [Mon, 20 Apr 2020 13:42:15 +0000 (15:42 +0200)] 
BEE Backport bacula/src/filed/bacl.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:   Tue Sep 24 13:39:41 2019 +0200

    Fix issue with xattr/acl detection code

5 years agoBEE Backport bacula/src/filed/bacl.c
Eric Bollengier [Mon, 20 Apr 2020 13:42:08 +0000 (15:42 +0200)] 
BEE Backport bacula/src/filed/bacl.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:   Tue Sep 24 13:39:41 2019 +0200

    Fix issue with xattr/acl detection code

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jul 17 17:42:46 2019 +0200

    Fix AIX build

    The AIX implementation for ACL and XATTR is not yet written, so it is
    detected but the compilation doesn't work.

5 years agoBEE Backport bacula/src/filed/backup.h
Eric Bollengier [Mon, 20 Apr 2020 13:41:54 +0000 (15:41 +0200)] 
BEE Backport bacula/src/filed/backup.h

5 years agoBEE Backport bacula/src/filed/backup.c
Alain Spineux [Mon, 20 Apr 2020 13:40:57 +0000 (15:40 +0200)] 
BEE Backport bacula/src/filed/backup.c

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

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Mon Jun 11 09:00:30 2018 +0200

    aligned: Add support for indexed streams to Aligned Volumes

Author: Kern Sibbald <kern@sibbald.com>
Date:   Wed Mar 28 13:48:00 2018 +0200

    Add prepare bit to the plugin stream and handle it in the SD

Author: Alain Spineux <alain@baculasystems.com>
Date:   Wed Aug 10 16:13:19 2016 +0200

    fix #2012 "bsock.c:609 Socket has errors=1..." repeat again and again

    - this is because the error is not return to the caller and the caller
      call the functions until the job is canceled

    - 8.4 don't suffer this problem

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: Alain Spineux <alain@baculasystems.com>
Date:   Fri Dec 4 18:43:17 2015 +0100

    Unify and extend blowup & hangup debug feature

    - negative blowup and hangup are for JobBytes in KB
    - add blowup and hangup support in append.c
    - the same code is called by SD/FD during backup/restore

    in the code
    - code is moved in message.c
    - in the code I use blowup==-1 instead of blowup<0
    - -1 is a "NONE" value
    - 0 to disable

Author: Kern Sibbald <kern@sibbald.com>
Date:   Mon Oct 13 08:59:47 2014 +0200

    Fix #588 Improve SD bsr read performance

Signed-off-by: Eric Bollengier <eric@baculasystems.com>
Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Oct 10 08:48:17 2014 +0200

    Implement Win EFS Support

     - Merge kern-refactor-backup branch with 8.1
     - Implement Win EFS simulator
     - Split win efs functions into win_efs.c
     - Add new src/filed/crypto.c file
     - Refactor backup.c, restore.c

5 years agoBEE Backport bacula/src/filed/authenticate.c
Alain Spineux [Mon, 20 Apr 2020 13:40:42 +0000 (15:40 +0200)] 
BEE Backport bacula/src/filed/authenticate.c

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

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: 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: Alain Spineux <alain@baculasystems.com>
Date:   Mon Apr 8 18:25:24 2019 +0200

    PSK: cleanup authentication and replace sscanf with scan_string()

5 years agoBEE Backport bacula/src/filed/accurate.c
Eric Bollengier [Mon, 20 Apr 2020 13:40:12 +0000 (15:40 +0200)] 
BEE Backport bacula/src/filed/accurate.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)

5 years agoBEE Backport bacula/src/filed/Makefile.in
Eric Bollengier [Mon, 20 Apr 2020 13:40:04 +0000 (15:40 +0200)] 
BEE Backport bacula/src/filed/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: Henrique <henrique.faria@baculasystems.com>
Date:   Tue Jun 11 11:59:50 2019 -0300

    Fixed bacula-fd static 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

5 years agoUpdate copyright year
Eric Bollengier [Fri, 17 Apr 2020 08:04:09 +0000 (10:04 +0200)] 
Update copyright year

5 years agoTweak headers of version.h, bpluginfo.c and bregex
Eric Bollengier [Fri, 17 Apr 2020 07:53:54 +0000 (09:53 +0200)] 
Tweak headers of version.h, bpluginfo.c and bregex

5 years agoAdd little bpipe_test in tools/
Eric Bollengier [Mon, 9 Mar 2020 09:23:15 +0000 (10:23 +0100)] 
Add little bpipe_test in tools/

5 years agobaculum: Add tip about using table row selection
Marcin Haba [Thu, 16 Apr 2020 18:05:52 +0000 (20:05 +0200)] 
baculum: Add tip about using table row selection

5 years agoFix bug #2525 seg fault when doing estimate with accurate and MD5
Martin Simmons [Tue, 17 Mar 2020 10:04:36 +0000 (11:04 +0100)] 
Fix bug #2525 seg fault when doing estimate with accurate and MD5

5 years agobaculum: Update version
Marcin Haba [Tue, 17 Mar 2020 05:09:35 +0000 (06:09 +0100)] 
baculum: Update version

5 years agobaculum: Fix issues with SELinux support reported by Neil MacGregor
Marcin Haba [Tue, 17 Mar 2020 05:09:17 +0000 (06:09 +0100)] 
baculum: Fix issues with SELinux support reported by Neil MacGregor

5 years agoCorrect some copyrights
Kern Sibbald [Mon, 16 Mar 2020 17:23:12 +0000 (18:23 +0100)] 
Correct some copyrights

5 years agoUpdate version date + ChangeLog + ReleaseNotes
Kern Sibbald [Mon, 9 Mar 2020 16:33:38 +0000 (17:33 +0100)] 
Update version date + ChangeLog + ReleaseNotes

5 years agoEliminate false error when droping postgres table MAC
Kern Sibbald [Mon, 9 Mar 2020 16:31:04 +0000 (17:31 +0100)] 
Eliminate false error when droping postgres table MAC

5 years agoUpdate ChangeLog + ReleaseNotes
Kern Sibbald [Sun, 8 Mar 2020 10:55:26 +0000 (11:55 +0100)] 
Update ChangeLog + ReleaseNotes

5 years agoUpdate version date
Kern Sibbald [Sun, 8 Mar 2020 10:52:07 +0000 (11:52 +0100)] 
Update version date

5 years agoFix logic error in clearing bit on Windows
Kern Sibbald [Sun, 8 Mar 2020 10:50:53 +0000 (11:50 +0100)] 
Fix logic error in clearing bit on Windows

5 years agobaculum: Update Portuguese translations
Wanderlei Huttel [Sat, 7 Mar 2020 18:50:25 +0000 (19:50 +0100)] 
baculum: Update Portuguese translations

5 years agobaculum: Update Polish translations
Marcin Haba [Sat, 7 Mar 2020 18:43:47 +0000 (19:43 +0100)] 
baculum: Update Polish translations

5 years agobaculum: Add patch to PRADO framework 4.0.1 for supporting PostgreSQL 12 catalog...
Marcin Haba [Sat, 7 Mar 2020 15:38:57 +0000 (16:38 +0100)] 
baculum: Add patch to PRADO framework 4.0.1 for supporting PostgreSQL 12 catalog database

Feature request reported to the PRADO framework project: https://github.com/pradosoft/prado/issues/708

5 years agobaculum: Add support for PostgreSQL 12 catalog database
Marcin Haba [Sat, 7 Mar 2020 15:32:24 +0000 (16:32 +0100)] 
baculum: Add support for PostgreSQL 12 catalog database

5 years agoUpdate ChangeLog and ReleaseNotes
Kern Sibbald [Sat, 7 Mar 2020 18:03:03 +0000 (19:03 +0100)] 
Update ChangeLog and ReleaseNotes

5 years agoEnhance failed bpipe to changer error message
Kern Sibbald [Sat, 7 Mar 2020 18:00:14 +0000 (19:00 +0100)] 
Enhance failed bpipe to changer error message

5 years agoUpdate version + date
Kern Sibbald [Sat, 7 Mar 2020 17:40:45 +0000 (18:40 +0100)] 
Update version + date

5 years agoSome more copyright cleanup
Kern Sibbald [Sat, 7 Mar 2020 14:59:35 +0000 (15:59 +0100)] 
Some more copyright cleanup

5 years agoClean up some incorrect copyrights
Kern Sibbald [Sat, 7 Mar 2020 14:54:17 +0000 (15:54 +0100)] 
Clean up some incorrect copyrights

5 years agoCorrect spelling errors in messages
Carsten Leonhardt [Sat, 7 Mar 2020 13:23:04 +0000 (14:23 +0100)] 
Correct spelling errors in messages

5 years agoAdd to plugins links
Carsten Leonhardt [Sat, 7 Mar 2020 13:21:33 +0000 (14:21 +0100)] 
Add  to plugins links

6 years agoAdd Docker plugin rpm spec files
Davide Franco [Sat, 7 Mar 2020 05:55:06 +0000 (06:55 +0100)] 
Add Docker plugin rpm spec files

 - fix bacula.spec for docker-fd.so

6 years agobaculum: Tweak set PUT request parameters as optional
Marcin Haba [Sun, 1 Mar 2020 16:15:44 +0000 (17:15 +0100)] 
baculum: Tweak set PUT request parameters as optional

6 years agobaculum: Add bulk actions for job history and volume tables
Marcin Haba [Sun, 1 Mar 2020 16:13:15 +0000 (17:13 +0100)] 
baculum: Add bulk actions for job history and volume tables

- add 'cancel' and 'delete' actions to job history table
- add 'prune' and 'purge' action to volume table

6 years agobaculum: Update DataTables and its plugins
Marcin Haba [Sun, 1 Mar 2020 16:00:15 +0000 (17:00 +0100)] 
baculum: Update DataTables and its plugins

- update DataTables
- update responsive plugin
- update buttons plugin
- add select plugin

6 years agodocker: Update copyright headers.
Radosław Korzeniewski [Thu, 27 Feb 2020 13:34:06 +0000 (14:34 +0100)] 
docker: Update copyright headers.

6 years agoUpdate BSD copyright on *.conf.in files
Kern Sibbald [Thu, 27 Feb 2020 12:50:05 +0000 (13:50 +0100)] 
Update BSD copyright on *.conf.in files

6 years agodocker: Remove unneeded tar binary.
Radosław Korzeniewski [Thu, 27 Feb 2020 12:25:41 +0000 (13:25 +0100)] 
docker: Remove unneeded tar binary.

6 years agoFix workaround for Sun C++ recommended by Phil Stracchino
Kern Sibbald [Thu, 27 Feb 2020 11:47:52 +0000 (12:47 +0100)] 
Fix workaround for Sun C++ recommended by Phil Stracchino

6 years agobaculum: Update Polish translations
Marcin Haba [Thu, 27 Feb 2020 06:31:14 +0000 (07:31 +0100)] 
baculum: Update Polish translations

6 years agobaculum: Update Portuguese translations
Wanderlei Huttel [Thu, 27 Feb 2020 06:20:16 +0000 (07:20 +0100)] 
baculum: Update Portuguese translations

6 years agobaculum: Tweak update URLs in OpenAPI documentation
Marcin Haba [Thu, 27 Feb 2020 05:26:26 +0000 (06:26 +0100)] 
baculum: Tweak update URLs in OpenAPI documentation

6 years agobaculum: Update version
Marcin Haba [Wed, 26 Feb 2020 21:16:22 +0000 (22:16 +0100)] 
baculum: Update version

6 years agoUpdate ReleaseNotes and ChangeLog Release-9.6.2
Kern Sibbald [Wed, 26 Feb 2020 14:11:43 +0000 (15:11 +0100)] 
Update ReleaseNotes and ChangeLog

6 years agobaculum: Update version
Marcin Haba [Wed, 26 Feb 2020 13:55:54 +0000 (14:55 +0100)] 
baculum: Update version

6 years agoUpdate version number
Kern Sibbald [Wed, 26 Feb 2020 13:54:19 +0000 (14:54 +0100)] 
Update version number