scripts/cleanup
scripts/copy-tape-confs
-cp scripts/bacula-dir-vtape.conf bin/bacula-dir.conf
-cp scripts/bacula-sd-vtape.conf bin/bacula-sd.conf
+cp $rscripts/bacula-dir-vtape.conf $conf/bacula-dir.conf
+cp $rscripts/bacula-sd-vtape.conf $conf/bacula-sd.conf
scripts/prepare-fake-autochanger
echo "${cwd}/build" >${cwd}/tmp/file-list
when1=`perl -MPOSIX -e "print strftime('%F %T', localtime(time+30))"`
when2=`perl -MPOSIX -e "print strftime('%F %T', localtime(time+45))"`
-clientname=`awk '/Name = .*-fd/ { if (!ok) { print $3 ; ok=1 } }' $bin/bacula-dir.conf`
+clientname=`awk '/Name = .*-fd/ { if (!ok) { print $3 ; ok=1 } }' bin/bacula-dir.conf`
# Catalog record for cleaning tape "CLN01" successfully created.
# CLN01 | Cleaning
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log6.out
@#setdebug level=200 storage=LTO1
@#
@# now do a restore
@#
-restore fileset="Full Set" pool=Diff where=${cwd}/tmp/bacula-restores select all done
+restore client=$clientname fileset="Full Set" pool=Diff where=${cwd}/tmp/bacula-restores select all done
yes
wait
messages
fi
end_test
-