#!/bin/sh # # Run a simple backup of the Bacula build directory # to a tape then restore it, we do that twice to ensure that # we can correctly append to a tape. # TestName="backup-win32-tape" JobName=backupwintape . scripts/functions set_debug 0 scripts/cleanup-tape scripts/copy-win32-confs echo "${cwd}/build" >/tmp/file-list change_jobname $JobName start_test cat <tmp/bconcmds @output /dev/null messages @$out tmp/log1.out label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default run job=NightlySave yes @sleep 10 status storage=DDS-4 @sleep 30 messages wait messages @# @# now do a restore @# @$outt tmp/log2.out @#restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done @#yes @#wait @#messages END_OF_DATA run_bacula check_for_zombie_jobs storage=DDS-4 stop_bacula check_two_logs check_restore_diff end_test