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 scripts/copy-win32-confs
11 echo "${cwd}/build" >/tmp/file-list
15 echo " === Starting Backup Win32 tape test at `date +%R:%S` ==="
16 echo " === Starting Backup Win32 tape test at `date +%R:%S` ===" >>working/log
19 bin/bacula start 2>&1 >/dev/null
20 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
24 label storage=DDS-4 volume=TestVolume001 slot=0
25 run job=NightlySave yes
36 @#restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
41 scripts/check_for_zombie_jobs storage=DDS-4
43 bin/bacula stop 2>&1 >/dev/null
44 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
46 if [ $bstat != 0 ] ; then
49 echo " !!!!! Backup Win32 tape test failed!!! !!!!! "
50 echo " !!!!! Backup Win32 tape test failed!!! !!!!! " >>test.out
53 echo " ===== Backup Win32 tape test OK ===== "
54 echo " ===== Backup Win32 tape test OK ===== " >>test.out