# Source the configuration variables
. ${cwd}/config
+CLIENT=${HOST}-fd
@$out ${cwd}/tmp/log1.out
setdebug level=3 dir
setdebug level=3 storage=DDS-4
-setdebug level=3 client
+setdebug level=3 client=$CLIENT
label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default drive=1
# label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default drive=1
status storage=DDS-4
@$out ${cwd}/tmp/log1.out
setdebug level=3 dir
setdebug level=3 storage=DDS-4
-setdebug level=3 client
+setdebug level=3 client=2drive2disk
label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default drive=0
label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default drive=1
status storage=DDS-4
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out ${cwd}/tmp/log1.out
-setdebug level=1 client
+setdebug level=1 client=$CLIENT
run job=backup fileset=FS_TESTJOB2 yes
wait
messages
stop_bacula
end_test
-
messages
@sleep 1
@$out ${cwd}/tmp/RUN_BUG_897.log
-setdebug level=200 client
+setdebug level=200 client=$CLIENT
run job=BUG_897 yes
@sleep 2
cancel
@# now do a restore
@#
@$out ${cwd}/tmp/log2.out
-@#setdebug level=50 client
+@#setdebug level=50 client=$CLIENT
restore where=/ select all storage=File1 done
yes
wait
@$out ${cwd}/tmp/log1.out
@#setdebug level=150 dir
@#setdebug level=150 storage=FileStorage
-setdebug level=100 client
+setdebug level=100 client=$CLIENT
label storage=FileStorage pool=Default volume=TestVolume001
run job=$JobName storage=FileStorage pool=Default yes
wait
@# now do a restore
@#
@$out ${cwd}/tmp/log2.out
-@#setdebug level=50 client
+@#setdebug level=50 client=$CLIENT
restore where=${cwd}/tmp/bacula-restores select all storage=FileStorage done
yes
wait
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=200 storage=DDS-4
-@#setdebug level=200 client
+@#setdebug level=200 client=$CLIENT
label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default drive=0
label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Full drive=0
label storage=DDS-4 volume=TestVolume003 slot=3 Pool=Inc drive=1
@$out tmp/log1.out
setdebug level=100 dir
setdebug level=100 storage=File
-setdebug level=100 client
+setdebug level=100 client=$CLIENT
status all
status all
messages
select * from Storage;
select VolumeName,InChanger,Slot,StorageId from Media;
-@#setdebug level=1000 client
+@#setdebug level=1000 client=$CLIENT
@#setdebug level=250 storage=DDS-4
run job=$JobName yes
wait
select * from Storage;
select VolumeName,InChanger,StorageId from Media;
-@#setdebug level=1000 client
+@#setdebug level=1000 client=$CLIENT
run job=$JobName yes
wait
update slots scan storage=DDS-4
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=200 storage=Virtual
-@#setdebug level=200 client
+@#setdebug level=200 client=$CLIENT
label storage=Virtual volume=TestVolume001 slot=1 Pool=Default drive=0
label storage=Virtual volume=TestVolume002 slot=2 Pool=Full drive=0
label storage=Virtual volume=TestVolume003 slot=3 Pool=Inc drive=1