]> git.sur5r.net Git - bacula/bacula/blob - regress/regress/tests/backup-win32-tape
2c67ddce85eb4a6b8d7bad4e020a4362e2909f84
[bacula/bacula] / regress / regress / tests / backup-win32-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="backup-win32-tape"
8 JobName=backupwintape
9 . scripts/functions
10
11 scripts/cleanup-tape
12 scripts/copy-win32-confs
13
14 echo "${cwd}/build" >${cwd}/tmp/file-list
15
16 change_jobname $JobName
17 start_test
18
19
20 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
21 @output /dev/null
22 messages
23 @$out ${cwd}/tmp/log1.out
24 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
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 @$outt ${cwd}/tmp/log2.out
36 @#restore where=${cwd}/tmp/bacula-restores 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 check_restore_diff
48 end_test