]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/win32-to-linux-tape
Update more tests
[bacula/bacula] / regress / tests / win32-to-linux-tape
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory 
4 #   to a tape then restore it, we do that twice to ensure that
5 #   we can correctly append to a tape.
6 #
7 TestName="win32-to-linux-tape"
8 JobName=AutoLabel
9 . scripts/functions
10 set_debug 0
11
12 scripts/copy-win32-confs
13 scripts/cleanup-tape
14
15 echo "${cwd}/build" >/tmp/file-list
16
17 change_job $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 drive=0
25 run job=NightlySave yes
26 @sleep 10
27 status storage=DDS-4
28 @sleep 30
29 messages
30 wait
31 messages
32 @# 
33 @# now do a restore
34 @#
35 @$out tmp/log2.out
36 restore where=c:/tmp/bacula-restores client=Tibs select all storage=DDS-4 done
37 yes
38 wait
39 messages
40 END_OF_DATA
41
42 run_bacula
43 check_for_zombie_jobs storage=DDS-4
44 stop_bacula
45
46 check_two_logs
47 # No diff for the moment
48 dstat=0
49 end_test