3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # This is Arno's test. It uses two pools, two tapes, and
9 # an autochanger. Note, the Director has three Pools in its
10 # conf: Default, Full, and Inc. Default is used in the
11 # NightlySave job by default. What is backed up is what
12 # is in ${cwd}/tmp/file-list, which is by default the Bacula
13 # source code (i.e. the build directory).
15 # Note, we use the virtual disk autochanger.
17 TestName="two-pool-test"
23 scripts/copy-2disk-confs
24 scripts/prepare-disk-changer
26 # Make a relatively large backup set 5 x source code directory
27 # Reduced to 1 for portable
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 setdebug level=20 storage=tape
40 label storage=tape volume=TestVolume001 slot=1 pool=Full drive=0
41 label storage=tape volume=TestVolume002 slot=2 pool=Default drive=0
43 @# Start job with Client run before and sleep
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=tape
49 run job=NightlySave2 level=Full pool=Full yes
50 run job=NightlySave2 level=Full pool=Full yes
65 release storage=tape drive=0
66 release storage=tape drive=1
67 restore where=${cwd}/tmp/bacula-restores select all storage=tape done
75 check_for_zombie_jobs storage=tape