]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/backup-win32-tape
Tweak cleaner output in accurate-test
[bacula/bacula] / 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 require_tape_drive_drive
12
13 scripts/cleanup-tape
14 scripts/copy-win32-confs
15
16 echo "${cwd}/build" >${cwd}/tmp/file-list
17
18 change_jobname $JobName
19 start_test
20
21
22 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
23 @$out /dev/null
24 messages
25 @$out ${cwd}/tmp/log1.out
26 label storage=tape volume=TestVolume001 slot=0 pool=Default
27 run job=NightlySave yes
28 @sleep 10
29 status storage=tape
30 @sleep 30
31 messages
32 wait
33 messages
34 @# 
35 @# now do a restore
36 @#
37 @$outt ${cwd}/tmp/log2.out
38 @#restore where=${cwd}/tmp/bacula-restores select all storage=tape done
39 @#yes
40 @#wait
41 @#messages
42 END_OF_DATA
43
44 run_bacula
45 check_for_zombie_jobs storage=tape
46 stop_bacula
47
48 check_two_logs
49 check_restore_diff
50 end_test