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"
12 scripts/copy-tape-confs
13 echo "${cwd}/build" >${cwd}/tmp/file-list
15 change_jobname $JobName
18 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
21 @$out ${cwd}/tmp/log1.out
22 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
23 run job=$JobName level=Full yes
26 add pool=Default storage=DDS-4
29 @# set status to append
30 update volume=TestVolume001
33 run job=$JobName level=Full yes
37 @#setdebug level=150 storage=DDS-4
38 purge volume=TestVolume001
39 relabel oldvolume=TestVolume001 volume=TestVolume003 slot=0 pool=Default storage=DDS-4
44 run job=$JobName level=Full yes
52 check_for_zombie_jobs storage=DDS-4
57 # now do several restores to ensure we cleanup between jobs
59 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
61 restore where=${cwd}/tmp/bacula-restores select all done
64 restore where=${cwd}/tmp/bacula-restores select all done
67 @$out ${cwd}/tmp/log2.out
69 @# now unmount the tape and start two restores
73 restore where=${cwd}/tmp/bacula-restores select all done
75 restore where=${cwd}/tmp/bacula-restores select
89 check_for_zombie_jobs storage=DDS-4