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 but
9 # split the archive into four volumes, two of which are
10 # totally full. I.e. make sure that bsr selects all tapes
11 # including those fully spanned.
13 TestName="span-vol-test"
18 scripts/copy-test-confs
19 echo "${cwd}/build" >${cwd}/tmp/file-list
21 change_jobname NightlySave $JobName
24 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
27 @$out ${cwd}/tmp/log1.out
28 label storage=File1 volume=TestVolume004
29 label storage=File1 volume=TestVolume003
30 label storage=File1 volume=TestVolume002
31 label storage=File1 volume=TestVolume001
32 update Volume=TestVolume004 MaxVolBytes=3000000
33 update Volume=TestVolume003 MaxVolBytes=3000000
34 update Volume=TestVolume002 MaxVolBytes=3000000
35 run job=$JobName storage=File1 yes
42 @$out ${cwd}/tmp/log2.out
43 restore where=${cwd}/tmp/bacula-restores select storage=File1
54 check_for_zombie_jobs storage=File1