3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory
9 # to a tape then restore it, we do that twice to ensure that
10 # we can correctly append to a tape.
12 TestName="backup-win32-tape"
16 require_tape_drive_drive
19 scripts/copy-win32-confs
21 echo "${cwd}/build" >${cwd}/tmp/file-list
23 change_jobname $JobName
27 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
30 @$out ${cwd}/tmp/log1.out
31 label storage=tape volume=TestVolume001 slot=0 pool=Default
32 run job=NightlySave yes
42 @$outt ${cwd}/tmp/log2.out
43 @#restore where=${cwd}/tmp/bacula-restores select all storage=tape done
50 check_for_zombie_jobs storage=tape