3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory
9 # to a tape where we set the minimum and maximum block
12 TestName="fixed-block-size-tape"
13 JobName=fixedblocksize
20 echo "${cwd}/build" >${cwd}/tmp/file-list
22 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
23 echo "s%# Maximum Block Size% Maximum Block Size%" >${cwd}/tmp/2
24 echo "s%# Minimum Block Size% Minimum Block Size%" >>${cwd}/tmp/2
25 sed -f ${cwd}/tmp/2 ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
29 echo "!!!! sed problem in Fixed Block Size test !!!!!"
33 rm -f ${cwd}/tmp/1 ${cwd}/tmp/2
35 change_jobname NightlySave $JobName
39 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
42 @$out ${cwd}/tmp/log1.out
43 setdebug level=51 storage=tape
44 label storage=tape volume=TestVolume001 slot=0 pool=Default
51 @$out ${cwd}/tmp/log2.out
52 restore where=${cwd}/tmp/bacula-restores select storage=tape
63 check_for_zombie_jobs storage=tape