]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/eot-fail-tape
Delete unwanted subdirectory
[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
10 scripts/cleanup-tape
11 scripts/copy-tape-confs
12  
13 echo "${cwd}/build" >/tmp/file-list
14
15 out="tmp/sed_tmp"
16 echo "s%# Maximum File Size%  Maximum File Size%g" >${out}
17 cp -f ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
18 sed -f ${out} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
19
20 change_jobname $JobName
21 start_test
22
23 cat <<END_OF_DATA >tmp/bconcmds
24 @output /dev/null
25 messages
26 @$out tmp/log1.out
27 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
28 update Volume=TestVolume001 MaxVolBytes=3000000
29 run job=$JobName yes
30 wait
31 messages
32 @# 
33 @# now do a restore
34 @#
35 @$out tmp/log2.out
36 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
37 yes
38 wait
39 messages
40 @tee
41 quit
42 END_OF_DATA
43
44 run_bacula
45 check_for_zombie_jobs storage=DDS-4
46 stop_bacula
47
48 check_two_logs
49 check_restore_diff
50 end_test