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 # Note, we use the virtual disk autochanger.
12 TestName="two-pool-test"
18 scripts/copy-2disk-confs
19 scripts/prepare-disk-changer
21 # Make a relatively large backup set 5 x source code directory
22 # Reduced to 1 for portable
23 echo "${cwd}/build" >${cwd}/tmp/file-list
24 echo "${cwd}/build" >${cwd}/tmp/file-list
25 echo "${cwd}/build" >${cwd}/tmp/file-list
29 # Write out bconsole commands to a file
30 cat <<END_OF_DATA >tmp/bconcmds
34 setdebug level=150 storage=tape
35 label storage=tape volume=TestVolume001 slot=1 pool=Full drive=0
36 label storage=tape volume=TestVolume002 slot=2 pool=Default drive=0
38 @# Start job with Client run before and sleep
39 run job=NightlySave1 level=Full pool=Default yes
40 run job=NightlySave1 level=Full pool=Default yes
41 @# wait between starting jobs
43 @#setdebug level=100 storage=tape
44 run job=NightlySave2 level=Full pool=Full yes
45 run job=NightlySave2 level=Full pool=Full yes
60 release storage=tape drive=0
61 release storage=tape drive=1
62 restore where=${cwd}/tmp/bacula-restores select all storage=tape done
70 check_for_zombie_jobs storage=tape