]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Add FORCE_SPOOL_DATA
authorEric Bollengier <eric@baculasystems.com>
Fri, 26 May 2023 07:45:12 +0000 (09:45 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
regress/scripts/functions

index 2c97c969f1b91e496fea97b0abd04b5e8d887558..05ee29cf29d9a909ec2c373e1e64037eb0262d51 100755 (executable)
@@ -240,6 +240,11 @@ EOF
        $bperl -e 'add_attribute("$conf/bacula-dir.conf", "SpoolAttributes", "No", "Job")'
        variant_name="${variant_name} NoSpoolAttributes"
    fi
+   if [ x$FORCE_SPOOL_DATA = xyes ]; then
+       $bperl -e 'add_attribute("$conf/bacula-dir.conf", "SpoolData", "yes", "Job")'
+       $bperl -e "add_attribute('$conf/bacula-sd.conf', 'MaximumJobSpoolSize', '5MB', 'Device')"
+       variant_name="${variant_name} SpoolData"
+   fi
    if [ x$FORCE_SDPACKETCHECK = xyes ]; then
        $bperl -e 'add_attribute("$conf/bacula-fd.conf", "SDPacketCheck", "500", "FileDaemon")'
        variant_name="${variant_name} SDCheckPacket"