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 the maximum tape file size is set to 1M
11 TestName="small-file-size-tape"
17 scripts/copy-tape-confs
20 echo "${cwd}/build" >${cwd}/tmp/file-list
21 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
22 sed "s%# Maximum File Size% Maximum File Size%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
24 change_jobname NightlySave $JobName
27 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
30 @$out ${cwd}/tmp/log1.out
31 label storage=tape volume=TestVolume001 slot=0 pool=Default
32 setdebug level=2 storage=tape
34 run level=Full job=$JobName yes
35 run level=Full job=$JobName yes
36 @exec "sh -c 'touch ${cwd}/build/*.o
38 @exec "sh -c 'touch ${cwd}/build/*.o
44 @$out ${cwd}/tmp/log2.out
45 restore where=${cwd}/tmp/bacula-restores select storage=tape
56 check_for_zombie_jobs storage=tape