if [ $bstat != 0 -o $rstat != 0 ] ; then
echo " !!!!! Bad termination status !!!!! "
echo " !!!!! Bad termination status !!!!! " >>test.out
- echo " Status: backup=$bstat restore=$rstat diff=$dstat"
- echo " Status: backup=$bstat restore=$rstat diff=$dstat" >>test.out
else
echo " !!!!! Restored files differ !!!!! "
echo " !!!!! Restored files differ !!!!! " >>test.out
- echo " Status: backup=$bstat restore=$rstat diff=$dstat"
- echo " Status: backup=$bstat restore=$rstat diff=$dstat" >>test.out
fi
+ echo " Status: backup=$bstat restore=$rstat diff=$dstat"
+ echo " Status: backup=$bstat restore=$rstat diff=$dstat" >>test.out
echo " "
+ exit 1
else
echo " ===== $TestName OK `date +%R:%S` ===== "
echo " ===== $TestName OK `date +%R:%S` ===== " >>test.out
@output /dev/null
messages
@$out tmp/log1.out
+@#setdebug level=50 storage=File
run job=$JobName storage=File yes
run job=$JobName storage=File yes
run job=$JobName storage=File yes
@# now do a restore
@#
@$out tmp/log2.out
+sql
+select * from JobMedia where JobId=4;
+select * from JobMedia where JobId=5;
+
+@#setdebug level=50 storage=File
restore where=${cwd}/tmp/bacula-restores select storage=File
unmark *
mark *