# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=150 storage=DiskChanger
label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Default drive=0
-label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0
-label storage=DiskChanger volume=ChangerVolume003 slot=3 Pool=Full drive=0
+label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Default drive=0
+label storage=DiskChanger volume=ChangerVolume003 slot=3 Pool=Default drive=0
+label storage=DiskChanger volume=ChangerVolume004 slot=4 Pool=Full drive=0
+label storage=DiskChanger volume=ChangerVolume005 slot=5 Pool=Full drive=0
setdebug level=0 storage=DiskChanger
@# run several jobs
@exec "sh -c 'date > ${cwd}/build/date'"
wait
messages
list jobs
+list volumes
@exec "sh -c 'touch ${cwd}/build/src/dird/*.c'"
run job=$JobName level=Incremental storage=DiskChanger yes
wait
messages
list jobs
+list volumes
@exec "sh -c 'touch ${cwd}/build/src/dird/*.o'"
run job=$JobName level=Differential storage=DiskChanger yes
wait
messages
list jobs
+list volumes
@exec "sh -c 'date > ${cwd}/build/date'"
@exec "sh -c 'touch ${cwd}/build/src/dird/*.o'"
run job=$JobName level=Incremental storage=DiskChanger yes
done
yes
wait
+list jobs
list volumes
@#setdebug level=100 dir
@#
run job=$JobName level=VirtualFull storage=DiskChanger yes
wait
messages
-list volumes
list jobs
+list volumes
@#
@# now do a restore of the Virtual backup
@#
update Volume=ChangerVolume002
11
Default
-list volumes
list jobs
+list volumes
messages
@exec "sh -c 'touch ${cwd}/build/src/dird/*.o'"
@#
done
yes
wait
-list volumes
list jobs
+list volumes
messages
@output
quit