REM REM Run a simple backup of the Bacula build directory then migrate it REM to another device. REM REM Test migrating a job that spans two Volumes REM REM This script uses the virtual disk autochanger REM SET TestName=migration-jobspan-test SET JobName=MigrationJobSpanSave CALL scripts\functions set_debug 0 CALL config_out CALL scripts\cleanup CALL scripts\copy-migration-confs CALL scripts\prepare-two-disks ECHO %CD:\=/%/build >\tmp\file-list COPY bin\bacula-sd.conf tmp\1 sed "s;# Maximum File Size; Maximum File Size;" %CD%\tmp\1 >%CD%\bin\bacula-sd.conf CALL scripts\functions change_jobname NightlySave %JobName% CALL scripts\functions start_test REM REM Note, we first backup into Pool Default, REM then Migrate into Pool Full. REM Pool Default uses Storage=File REM Pool Full uses Storage=DiskChanger sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\migration-jobspan-test.bscr >tmp\bconcmds CALL scripts\functions run_bacula CALL scripts\functions check_for_zombie_jobs storage=File CALL scripts\functions stop_bacula CALL scripts\functions check_two_logs CALL scripts\functions check_restore_diff CALL scripts\functions end_test