]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/win32-to-linux-tape
Copy trunk regress into Branch
[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
11 scripts/copy-win32-confs
12 scripts/cleanup-tape
13
14 echo "${cwd}/build" >${cwd}/tmp/file-list
15
16 change_job $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 drive=0
24 run job=NightlySave yes
25 @sleep 10
26 status storage=DDS-4
27 @sleep 30
28 messages
29 wait
30 messages
31 @# 
32 @# now do a restore
33 @#
34 @$out tmp/log2.out
35 restore where=${cwd}/tmp/bacula-restores client=Tibs select all storage=DDS-4 done
36 yes
37 wait
38 messages
39 END_OF_DATA
40
41 run_bacula
42 check_for_zombie_jobs storage=DDS-4
43 stop_bacula
44
45 check_two_logs
46 # No diff for the moment
47 dstat=0
48 end_test