]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/eot-fail-tape
Updates
[bacula/bacula] / regress / tests / eot-fail-tape
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory 
4 #  to two tapes where the maximum tape file size is set to 1M
5 #
6 TestName="eot-fail-tape"
7 JobName=eotfailtape
8 . scripts/functions
9 set_debug 0
10
11 scripts/cleanup-tape
12 scripts/copy-tape-confs
13  
14 echo "${cwd}/build" >/tmp/file-list
15
16 out="tmp/sed_tmp"
17 echo "s%# Maximum File Size%  Maximum File Size%g" >${out}
18 cp -f ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
19 sed -f ${out} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
20
21 change_jobname $JobName
22 start_test
23
24 cat <<END_OF_DATA >tmp/bconcmds
25 @output /dev/null
26 messages
27 @$out tmp/log1.out
28 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
29 update Volume=TestVolume001 MaxVolBytes=3000000
30 run job=$JobName yes
31 wait
32 messages
33 @# 
34 @# now do a restore
35 @#
36 @$out tmp/log2.out
37 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
38 yes
39 wait
40 messages
41 @tee
42 quit
43 END_OF_DATA
44
45 run_bacula
46 check_for_zombie_jobs storage=DDS-4
47 stop_bacula
48
49 check_two_logs
50 check_restore_diff
51 end_test