2 REM Run a simple backup of the Bacula build directory then migrate it
5 REM This script uses the virtual disk autochanger
7 SET TestName=migration-occupancy-test
8 SET JobName=MigrationJobSave
10 CALL scripts\functions set_debug 0
15 CALL scripts\copy-migration-confs
16 CALL scripts\prepare-two-disks
17 ECHO %CD:\=/%/build >\tmp\file-list
19 CALL scripts\functions change_jobname NightlySave %JobName%
20 CALL scripts\functions start_test
23 REM Note, we first backup into Pool Default,
24 REM then Migrate into Pool Full.
25 REM Pool Default uses Storage=File
26 REM Pool Full uses Storage=DiskChanger
28 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\migration-occupancy-test.bscr >tmp\bconcmds
30 CALL scripts\functions run_bacula
31 CALL scripts\functions check_for_zombie_jobs storage=File
32 CALL scripts\functions stop_bacula
34 CALL scripts\functions check_two_logs
35 CALL scripts\functions check_restore_diff
36 CALL scripts\functions end_test