2 REM Run a simple backup of the Bacula build directory
3 REM to two tapes where the maximum tape file size is set to 1M
4 REM Note, this test simulates the tape filling and writing to
7 SET TestName=two-volume-tape
9 CALL scripts\functions set_debug 0
12 IF "%AUTOCHANGER%" == "nul" (
13 ECHO two-volume-tape test skipped. No autochanger.
18 CALL scripts\copy-2tape-confs
19 CALL scripts\prepare-two-tapes
21 ECHO %CD:\=/%/build >\tmp\file-list
23 COPY bin\bacula-sd.conf tmp\1
24 sed -e "s%# Maximum File Size% Maximum File Size%g" >bin\bacula-sd.conf
26 CALL scripts\functions change_jobname %JobName%
27 CALL scripts\functions start_test
29 REM Write out bconsole commands
30 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\two-volume-tape.1.bscr >tmp\bconcmds
32 CALL scripts\functions run_bacula
33 CALL scripts\functions check_for_zombie_jobs storage=DDS-4
34 CALL scripts\functions stop_bacula
36 mt -f %TAPE_DRIVE% rewind
37 mtx -f %AUTOCHANGER% unload
40 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\two-volume-tape.2.bscr >tmp\bconcmds
42 CALL scripts\functions run_bacula
43 CALL scripts\functions check_for_zombie_jobs storage=DDS-4
44 CALL scripts\functions stop_bacula
46 CALL scripts\functions check_two_logs
47 CALL scripts\functions check_restore_diff
48 CALL scripts\functions end_test