]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/two-volume-test.cmd
Updates
[bacula/bacula] / regress / win32 / tests / two-volume-test.cmd
1 REM 
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
5 REM    the next tape.
6 REM 
7 REM   Note we use the viritual disk autochanger
8 REM 
9 SET TestName=two-volume-test
10 SET JobName=TwoVolume
11 CALL scripts\functions set_debug 1
12 CALL config_out
13
14 CALL scripts\cleanup
15 CALL scripts\copy-2disk-confs >nul 2>&1
16 CALL scripts\prepare-two-disks
17  
18 ECHO %CD:\=/%/build >\tmp\file-list
19
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
22
23 CALL scripts\functions change_jobname NightlySave %JobName%
24 CALL scripts\functions start_test
25
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
28
29 CALL scripts\functions run_bacula
30 CALL scripts\functions check_for_zombie_jobs storage=DDS-4
31 CALL scripts\functions stop_bacula
32
33 CALL scripts\functions check_two_logs
34 CALL scripts\functions check_restore_diff
35 CALL scripts\functions end_test