3 # This is Arno's test. It uses two pools, two tapes, and
4 # an autochanger. Note, the Director has three Pools in its
5 # conf: Default, Full, and Inc. Default is used in the
6 # NightlySave job by default. What is backed up is what
7 # is in ${cwd}/tmp/file-list, which is by default the Bacula
8 # source code (i.e. the build directory).
10 TestName="two-pool-tape"
14 if test x${AUTOCHANGER} = x/dev/null ; then
15 echo "two-pool-tape test skipped. No autochanger."
20 scripts/copy-2tape-confs
21 echo "Prepare two tapes"
22 scripts/prepare-two-tapes
23 echo "Done prepare two tapes"
25 # Make a relatively large backup set 5 x source code directory
26 echo "${cwd}/build" >${cwd}/tmp/file-list
27 echo "${cwd}/build" >>${cwd}/tmp/file-list
28 echo "${cwd}/build" >>${cwd}/tmp/file-list
29 echo "${cwd}/build" >>${cwd}/tmp/file-list
30 echo "${cwd}/build" >>${cwd}/tmp/file-list
34 # Write out bconsole commands to a file
35 cat <<END_OF_DATA >tmp/bconcmds
39 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Full drive=0
40 label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
42 @# Start job with Client run before and sleep
43 run job=NightlySave1 level=Full pool=Default yes
44 run job=NightlySave1 level=Full pool=Default yes
45 run job=NightlySave1 level=Full pool=Default yes
46 @# wait between starting jobs
48 @#setdebug level=100 storage=DDS-4
49 run job=NightlySave2 level=Full pool=Full yes
50 run job=NightlySave2 level=Full pool=Full yes
51 run job=NightlySave2 level=Full pool=Full yes
66 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
75 check_for_zombie_jobs storage=DDS-4