3 # Run a simple backup of the Bacula build directory using the compressed option
4 # then backup four times, each with incremental then finally restore.
5 # It should require at least 4 different bsrs.
7 TestName="relabel-tape"
13 scripts/copy-tape-confs
14 echo "${cwd}/build" >/tmp/file-list
16 change_jobname $JobName
19 cat <<END_OF_DATA >tmp/bconcmds
23 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
24 run job=$JobName level=Full yes
30 @# set status to append
31 update volume=TestVolume001
34 run job=$JobName level=Full yes
38 @#setdebug level=150 storage=DDS-4
39 purge volume=TestVolume001
40 relabel oldvolume=TestVolume001 volume=TestVolume003 slot=0 pool=Default
45 run job=$JobName level=Full yes
53 check_for_zombie_jobs storage=DDS-4
58 # now do several restores to ensure we cleanup between jobs
60 cat <<END_OF_DATA >tmp/bconcmds
62 restore where=${cwd}/tmp/bacula-restores select all done
65 restore where=${cwd}/tmp/bacula-restores select all done
70 @# now unmount the tape and start two restores
74 restore where=${cwd}/tmp/bacula-restores select all done
76 restore where=${cwd}/tmp/bacula-restores select
90 check_for_zombie_jobs storage=DDS-4