- add XAPARAM ZSTD3 and NONE
COMPRESSION ZSTD --> FD Bytes Written: 123,976 (123.9 KB) Elapsed time: 1 sec
COMPRESSION ZSTD1 --> FD Bytes Written: 128,040 (128.0 KB) Elapsed time: 1 sec
COMPRESSION ZSTD3 --> FD Bytes Written: 123,976 (123.9 KB) Elapsed time: 1 sec
COMPRESSION ZSTD10 --> FD Bytes Written: 110,279 (110.2 KB) Elapsed time: 1 sec
COMPRESSION ZSTD19 --> FD Bytes Written: 106,196 (106.1 KB) Elapsed time: 1 sec
COMPRESSION NONE --> FD Bytes Written: 548,688 (548.6 KB) Elapsed time: 1 sec
#
# Run a simple backup of the Bacula build directory using the compressed option
# then restore it.
-# XPARAM ZSTD_LEVEL=(ZSTD|10:ZSTD1|10:ZSTD10|10:ZSTD19)
+# XPARAM ZSTD_LEVEL=(ZSTD|10:ZSTD1|10:ZSTD3|10:ZSTD10|10:ZSTD19|11:NONE)
TestName="zstd-test"
JobName=zstd
start_test
-if [ -n "$ZSTD_LEVEL" ] ; then
+if [ "$ZSTD_LEVEL" = "NONE" ] ; then
+ sed -i "s/compression\s*=\s*ZSTD\s*//" $conf/bacula-dir.conf
+elif [ -n "$ZSTD_LEVEL" ] ; then
sed -i "s/compression\s*=\s*ZSTD\s*/compression=${ZSTD_LEVEL}/" $conf/bacula-dir.conf
else
ZSTD_LEVEL="ZSTD"
- fi
+fi
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@output /dev/null