]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/migration-volume-test.cmd
Final changes
[bacula/bacula] / regress / win32 / tests / migration-volume-test.cmd
1 REM
2 REM Run a backup of the Bacula build directory on two Volumes
3 REM   then migrate it to another device.             
4 REM
5 REM This script uses the virtual disk autochanger
6 REM
7 SET TestName=migration-volume-test
8 SET JobName=MigVolBackup
9
10 CALL scripts\functions set_debug 0 
11
12 CALL config_out
13
14 CALL scripts\cleanup
15 CALL scripts\copy-migration-confs
16 CALL scripts\prepare-two-disks
17
18 ECHO %CD:\=/%/build >\tmp\file-list
19
20 REM COPY bin\bacula-sd.conf tmp\1
21 REM sed "s;# Maximum File Size;  Maximum File Size;" tmp\1 >bin\bacula-sd.conf
22
23 CALL scripts\functions change_jobname NightlySave %JobName%
24 CALL scripts\functions start_test
25
26 REM
27 REM Note, we first backup into Pool Default, 
28 REM          then Migrate into Pool Full. 
29 REM              Pool Default uses Storage=File
30 REM              Pool Full    uses Storage=DiskChanger
31
32 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\migration-volume-test.bscr >tmp\bconcmds
33
34 CALL scripts\functions run_bacula
35 CALL scripts\functions check_for_zombie_jobs storage=File
36 CALL scripts\functions stop_bacula
37
38 CALL scripts\functions check_two_logs
39 CALL scripts\functions check_restore_diff
40 CALL scripts\functions end_test