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.
8 if test "$debug" -eq 1 ; then
15 scripts/copy-win32-confs
18 echo "${cwd}/build" >/tmp/file-list
22 echo " === Starting Win32 Backup tape test at `date +%R:%S` ==="
23 echo " === Starting Win32 Backup tape test at `date +%R:%S` ===" >>working/log
26 cat <<END_OF_DATA >tmp/bconcmds
30 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default drive=0
31 run job=NightlySave yes
42 restore where=c:/tmp/bacula-restores select all storage=DDS-4 done
47 if test "$debug" -eq 1 ; then
49 cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf
51 bin/bacula start 2>&1 >/dev/null
52 cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf 2>&1 >/dev/null
55 scripts/check_for_zombie_jobs storage=DDS-4
57 bin/bacula stop 2>&1 >/dev/null
58 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
60 grep "^ Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
62 if [ $bstat != 0 -o $rstat != 0 ] ; then
65 echo " !!!!! Win32 Backup tape test failed!!! !!!!! "
66 echo " !!!!! Win32 Backup tape test failed!!! !!!!! " >>test.out
69 echo " ===== Win32 Backup tape test OK ===== "
70 echo " ===== Win32 Backup tape test OK ===== " >>test.out