1 REM Run a simple backup of the Bacula build directory. Create three
2 REM tapes, each in a different pool, then run some jobs asking for the
3 REM volume on drive three. It should find it without moving the
6 REM This script uses the virtual disk autochanger and two drives
8 SET TestName="2drive-3pool-disk"
9 SET JobName="2dr3pooldisk"
11 CALL scripts\functions set_debug 0
14 CALL scripts\copy-2disk-drive-confs
15 CALL scripts\prepare-two-disks
17 ECHO %CD:\=/%/build >tmp\file-list
18 CALL scripts\functions change_jobname NightlySave %JobName%
19 CALL scripts\functions start_test
21 REM Turn off Prefer Mounted Volumes so we use 2 drives
22 REM outf="tmp/sed_tmp"
23 REM ECHO "s%REM Prefer Mounted Volumes% Prefer Mounted Volumes%g" >${outf}
24 REM cp bin/bacula-dir.conf tmp/1
25 REM Comment the next line out to write everything to one drive
26 REM otherwise, it writes the two jobs to different drives
27 REM sed -f ${outf} tmp/1 >bin/bacula-dir.conf
29 REM Write out bconsole commands
30 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\2drive-3pool-test.1.bscr >tmp\bconcmds
31 CALL scripts\functions run_bacula
33 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\2drive-3pool-test.2.bscr >tmp\bconcmds
34 CALL scripts\functions run_bconsole
36 CALL scripts\functions check_for_zombie_jobs storage=DDS-4
37 CALL scripts\functions stop_bacula
39 CALL scripts\functions check_two_logs
40 CALL scripts\functions check_restore_diff
42 CALL scripts\functions end_test