2 REM Run a simple backup of the Bacula build directory then migrate it
5 REM Test migrating a job that spans two Volumes
7 REM This script uses the virtual disk autochanger
9 SET TestName=migration-jobspan-test
10 SET JobName=MigrationJobSpanSave
12 CALL scripts\functions set_debug 0
17 CALL scripts\copy-migration-confs
18 CALL scripts\prepare-two-disks
20 ECHO %CD:\=/%/build >\tmp\file-list
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
25 CALL scripts\functions change_jobname NightlySave %JobName%
26 CALL scripts\functions start_test
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
34 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\migration-jobspan-test.bscr >tmp\bconcmds
36 CALL scripts\functions run_bacula
37 CALL scripts\functions check_for_zombie_jobs storage=File
38 CALL scripts\functions stop_bacula
40 CALL scripts\functions check_two_logs
41 CALL scripts\functions check_restore_diff
42 CALL scripts\functions end_test