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 REM Note we use the viritual disk autochanger
9 SET TestName=two-volume-test
11 CALL scripts\functions set_debug 1
15 CALL scripts\copy-2disk-confs >nul 2>&1
16 CALL scripts\prepare-two-disks
18 ECHO %CD:\=/%/build >\tmp\file-list
20 COPY bin\bacula-sd.conf tmp\1
21 sed -e "s;# Maximum File Size; Maximum File Size;g" tmp\1 >bin\bacula-sd.conf
23 CALL scripts\functions change_jobname NightlySave %JobName%
24 CALL scripts\functions start_test
26 REM Write out bconsole commands
27 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\two-volume-test.bscr >tmp\bconcmds
29 CALL scripts\functions run_bacula
30 CALL scripts\functions check_for_zombie_jobs storage=DDS-4
31 CALL scripts\functions stop_bacula
33 CALL scripts\functions check_two_logs
34 CALL scripts\functions check_restore_diff
35 CALL scripts\functions end_test