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