2 REM Run a simple backup of the Bacula build directory but
3 REM create three volumes and do six backups causing the
4 REM volumes to be recycled, and cycling through the volumes
5 REM twice. Tests maxvoljobs and volretention.
7 SET TestName=recycle-test
10 CALL scripts\functions set_debug 0
11 CALL scripts\functions copy_test_confs
13 ECHO %CD:\=/%/build >tmp\file-list
15 CALL scripts\functions change_jobname NightlySave %JobName%
16 CALL scripts\functions start_test
18 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\recycle-test.bscr >tmp\bconcmds
20 CALL scripts\functions run_bacula
21 CALL scripts\functions check_for_zombie_jobs storage=File1
22 CALL scripts\functions stop_bacula
24 CALL scripts\functions check_two_logs
25 CALL scripts\functions check_restore_diff
26 CALL scripts\functions end_test