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