3 # Run a simple backup of the Bacula build directory but
4 # create three volumes and do six backups causing the
5 # volumes to be recycled, and cycling through the volumes
6 # twice. Tests maxvoljobs and volretention.
8 TestName="recycle-test"
15 scripts/copy-test-confs
16 echo "${cwd}/build" >/tmp/file-list
18 change_jobname NightlySave $JobName
21 cat <<END_OF_DATA >tmp/bconcmds
25 label storage=File1 volume=TestVolume001
26 label storage=File1 volume=TestVolume002
27 label storage=File1 volume=TestVolume003
28 update Volume=TestVolume001 volretention=10s
29 update Volume=TestVolume001 maxvoljobs=1
30 update Volume=TestVolume002 volretention=10s
31 update Volume=TestVolume002 maxvoljobs=1
32 update Volume=TestVolume003 volretention=10s
33 update Volume=TestVolume003 maxvoljobs=1
35 run job=$JobName storage=File1 level=full yes
39 run job=$JobName storage=File1 level=full yes
43 run job=$JobName storage=File1 level=full yes
48 run job=$JobName storage=File1 level=full yes
52 run job=$JobName storage=File1 level=full yes
56 run job=$JobName storage=File1 level=full yes
64 restore where=${cwd}/tmp/bacula-restores select storage=File1
76 check_for_zombie_jobs storage=File1