bscan_libdbi
# If the database has a password pass it to bscan
-if test "x${db_passwd}" = "x"; then
+if test "x${db_password}" = "x"; then
PASSWD=
else
- PASSWD="-P ${db_passwd}"
+ PASSWD="-P ${db_password}"
fi
if test "$debug" -eq 1 ; then
bscan_libdbi
# If the database has a password pass it to bscan
-if test "x${db_passwd}" = "x"; then
+if test "x${db_password}" = "x"; then
PASSWD=
else
- PASSWD="-P ${db_passwd}"
+ PASSWD="-P ${db_password}"
fi
if test "$debug" -eq 1 ; then
messages
@$out ${cwd}/tmp/log1.out
label storage=File1 volume=TestVolume001
-setdebug level=50 client=$CLIENT
+@#setdebug level=50 client=$CLIENT
run job=$JobName storage=File1 yes
wait
messages
END_OF_DATA
-run_bacula -d50
+run_bacula
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
messages
@# now do a restore
@#
@$out ${cwd}/tmp/log2.out
-@#setdebug level=50 client=$CLIENT
+setdebug level=50 client=$CLIENT
restore where=${cwd}/tmp select all storage=File1 done
yes
wait
+setdebug level=0 client=$CLIENT
messages
@$out
quit
@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
@# do a bunch of saves so we have 12 files on the tape
+@#setdebug level=100 dir
+setdebug level=100 storage=DDS-4
run job=$JobName yes
run level=Full job=$JobName yes
run level=Full job=$JobName yes
run level=Full job=$JobName yes
run level=Full job=$JobName yes
run level=Full job=$JobName yes
-@#setdebug level=100 storage=DDS-4
wait
messages
quit