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