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-1t1d-tape"
14 scripts/copy-tape-confs
16 echo "${cwd}/build" >${cwd}/tmp/file-list
18 change_jobname $JobName
21 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
24 @$out ${cwd}/tmp/log1.out
25 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
26 run job=$JobName level=Full yes
29 add pool=Default storage=DDS-4
32 @# set status to append
33 update volume=TestVolume001
36 run job=$JobName level=Full yes
40 @#setdebug level=150 storage=DDS-4
41 purge volume=TestVolume001
42 relabel oldvolume=TestVolume001 volume=TestVolume003 slot=0 pool=Default storage=DDS-4
47 run job=$JobName level=Full yes
55 check_for_zombie_jobs storage=DDS-4
60 # now do several restores to ensure we cleanup between jobs
62 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
64 restore where=${cwd}/tmp/bacula-restores select all done
67 restore where=${cwd}/tmp/bacula-restores select all done
70 @$out ${cwd}/tmp/log2.out
72 @# now unmount the tape and start two restores
76 restore where=${cwd}/tmp/bacula-restores select all done
78 restore where=${cwd}/tmp/bacula-restores select
92 check_for_zombie_jobs storage=DDS-4