]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/migration-time-test.cmd
473ebe6b5e09d10690cf21aa40dd9da1b51db8a1
[bacula/bacula] / regress / win32 / tests / migration-time-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 This script uses the virtual disk autochanger
6 REM
7 SET TestName=migration-time-test
8 SET JobName=MigrationJobSave
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 CALL scripts\functions change_jobname NightlySave %JobName%
21 CALL scripts\functions start_test
22
23 REM
24 REM Note, we first backup into Pool Default, 
25 REM          then Migrate into Pool Full. 
26 REM              Pool Default uses Storage=File
27 REM              Pool Full    uses Storage=DiskChanger
28
29 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\migration-time-test.bscr >tmp\bconcmds
30
31 CALL scripts\functions run_bacula
32 CALL scripts\functions check_for_zombie_jobs storage=File
33 CALL scripts\functions stop_bacula
34
35 CALL scripts\functions check_two_logs
36 CALL scripts\functions check_restore_diff
37 CALL scripts\functions end_test