3 # Run a simple backup of the Bacula build directory but
4 # split the archive into four volumes, two of which are
5 # totally full. I.e. make sure that bsr selects all tapes
6 # including those fully spanned.
8 TestName="span-vol-test"
13 scripts/copy-test-confs
14 echo "${cwd}/build" >${cwd}/tmp/file-list
16 change_jobname NightlySave $JobName
19 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
22 @$out ${cwd}/tmp/log1.out
23 label storage=File1 volume=TestVolume004 pool=Default
24 label storage=File1 volume=TestVolume003 pool=Default
25 label storage=File1 volume=TestVolume002 pool=Default
26 label storage=File1 volume=TestVolume001 pool=Default
27 update Volume=TestVolume004 MaxVolBytes=3000000
28 update Volume=TestVolume003 MaxVolBytes=3000000
29 update Volume=TestVolume002 MaxVolBytes=3000000
30 run job=$JobName storage=File1 yes
37 @$out ${cwd}/tmp/log2.out
38 restore where=${cwd}/tmp/bacula-restores select storage=File1
50 check_for_zombie_jobs storage=File1