2 REM Run a simple backup of the Bacula build directory but
3 REM split the archive into two volumes, then build a BSR with
4 REM the restore command and use bextract to restore the files.
6 SET TestName=bextract-test
9 CALL scripts\functions set_debug 0
10 CALL scripts\functions copy_test_confs
12 ECHO %CD:\=/%/build >tmp\file-list
14 CALL scripts\functions change_jobname NightlySave %JobName%
15 CALL scripts\functions start_test
17 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\bextract-test.bscr >tmp\bconcmds
19 CALL scripts\functions run_bacula
20 CALL scripts\functions check_for_zombie_jobs storage=File1
21 CALL scripts\functions stop_bacula
23 MKDIR tmp\bacula-restores
24 bin\bextract -b working/restore.bsr -c bin/bacula-sd.conf %CD:\=/%/tmp %CD:\=/%/tmp/bacula-restores 2>&1 >nul
25 SET rstat=%ERRORLEVEL%
26 grep "^ Termination: *Backup OK" tmp\log1.out 2>&1 >nul
27 SET bstat=%ERRORLEVEL%
28 CALL scripts\functions check_restore_diff
29 CALL scripts\functions end_test