]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/fast-two-pool-test
Update
[bacula/bacula] / regress / tests / fast-two-pool-test
1 #!/bin/sh
2 #
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 /tmp/file-list, which is by default the Bacula
8 #  source code (i.e. the build directory).
9 #
10 #  Note, we use the virtual disk autochanger.
11 #
12 TestName="fast-two-pool-test"
13 JobName=Fast-two-pool
14 . scripts/functions
15
16 . config.out
17 scripts/cleanup
18 scripts/copy-2disk-confs
19 scripts/prepare-two-disks
20  
21 # Make a relatively large backup set 5 x source code directory
22 #  Reduced to 1 for portable
23 echo "${cwd}/build" >/tmp/file-list
24 echo "${cwd}/build" >/tmp/file-list
25 echo "${cwd}/build" >/tmp/file-list
26 echo "${cwd}/build" >/tmp/file-list
27
28 start_test
29
30 # Write out bconsole commands to a file
31 cat <<END_OF_DATA >tmp/bconcmds
32 @output /dev/null
33 messages
34 @$out tmp/log1.out
35 @#setdebug level=150 storage=DDS-4
36 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Full drive=0
37 label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
38 list volumes
39 @# Start job with Client run before and sleep
40 run job=NightlySave1 level=Full pool=Default yes
41 run job=NightlySave1 level=Full pool=Default yes
42 @# wait between starting jobs
43 @sleep 10
44 @#setdebug level=100 storage=DDS-4
45 run job=NightlySave1 level=Full pool=Full yes
46 run job=NightlySave1 level=Full pool=Full yes
47 status storage=DDS-4
48 messages
49 wait
50 list volumes
51 messages
52 @# 
53 @# now do a restore
54 @#
55 @$out tmp/log2.out
56 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
57 yes
58 wait
59 messages
60 @$out
61 quit
62 END_OF_DATA
63
64 # exit
65 run_bacula
66 check_for_zombie_jobs storage=DDS-4
67 stop_bacula
68
69 check_two_logs
70 check_restore_diff
71 end_test