]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/small-file-size-tape
9c68cad1ebaee864221d63a7ee2157e403c687e4
[bacula/bacula] / regress / win32 / 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 set_debug 0
10
11 copy_tape_confs
12
13 echo "${cwd}/build" >/tmp/file-list
14 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
15 sed "s%# Maximum File Size%  Maximum File Size%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
16
17 change_jobname NightlySave $JobName
18 start_test
19
20 cat <<END_OF_DATA >tmp/bconcmds
21 @output /dev/null
22 messages
23 @$out tmp/log1.out
24 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
25 setdebug level=2 storage=DDS-4
26 run job=$JobName yes
27 wait
28 messages
29 @# 
30 @# now do a restore
31 @#
32 @$out   tmp/log2.out
33 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
34 unmark *
35 mark *
36 done
37 yes
38 wait
39 messages
40 @output
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