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"
14 scripts/copy-test-confs
16 echo "${cwd}/build" >/tmp/file-list
18 change_jobname NightlySave $JobName
21 cat <<END_OF_DATA >tmp/bconcmds
25 label storage=File1 volume=TestVolume004
26 label storage=File1 volume=TestVolume003
27 label storage=File1 volume=TestVolume002
28 label storage=File1 volume=TestVolume001
29 update Volume=TestVolume004 MaxVolBytes=3000000
30 update Volume=TestVolume003 MaxVolBytes=3000000
31 update Volume=TestVolume002 MaxVolBytes=3000000
32 run job=$JobName storage=File1 yes
40 restore where=${cwd}/tmp/bacula-restores select storage=File1
52 check_for_zombie_jobs storage=File1