]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/2drive-concurrent-test
ebl update and make it working
[bacula/bacula] / regress / tests / 2drive-concurrent-test
1 #!/bin/sh
2 #
3 # Run four jobs at the same time, with two Volumes.
4 #   Set max Vol bytes of first volume
5 #   to less than total backup to force Bacula to use the second
6 #   Volume.
7 #
8 TestName="2drive-concurrent-test"
9 JobName=Four-concurrent-jobs
10 . scripts/functions
11
12 scripts/cleanup
13 scripts/copy-2disk-drive-confs
14 scripts/prepare-two-disks
15 echo "${cwd}/build" >${cwd}/tmp/file-list
16
17 change_jobname NightlySave $JobName
18 start_test
19
20 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
21 @output /dev/null
22 messages
23 @$out   ${cwd}/tmp/log1.out
24 label pool=Default storage=DDS-4 volume=TestVolume001 slot=1 drive=0
25 label pool=Default storage=DDS-4 volume=TestVolume002 slot=2 drive=1
26 update Volume=TestVolume001 MaxVolBytes=100000000
27 @#50000000
28 @#12
29 setdebug level=200 Storage=DDS-4
30 status storage=DDS-4
31 list jobs
32 list volumes
33 run job=$JobName level=Full Storage=DDS-4
34 yes
35 @#reload
36 list jobs
37 list volumes
38 run job=$JobName level=Full Storage=DDS-4
39 yes
40 @#reload
41 list jobs
42 list volumes
43 run job=$JobName level=Full Storage=DDS-4
44 yes
45 @#reload
46 list jobs
47 list volumes
48 status storage=DDS-4
49 run job=$JobName level=Full Storage=DDS-4
50 yes
51 status storage=DDS-4
52 @#reload
53 @#reload
54 @#reload
55 @#reload
56 @sleep 2
57 status dir
58 status storage=DDS-4
59 @#reload
60 @sleep 5
61 list jobs
62 list volumes
63 messages
64 @#reload
65 @#reload
66 wait
67 status storage=DDS-4
68 @#reload
69 messages
70 @# 
71 @# now do a restore
72 @#
73 @$out   ${cwd}/tmp/log2.out
74 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
75 unmark *
76 mark *
77 done
78 yes
79 wait
80 @#reload
81 @#reload
82 messages
83 @output
84 quit
85 END_OF_DATA
86
87 run_bacula
88 check_for_zombie_jobs storage=DDS-4
89 stop_bacula
90
91 check_two_logs
92 check_restore_diff
93 end_test