update Media SET LastWritten='2006-01-01 01:00:01' WHERE VolumeName='vol57';
update Media SET LastWritten='2006-01-01 01:00:02' WHERE VolumeName='vol53';
-list volume
+list volumes
+wait
+quit
EOF
run_bacula
run level=full pool=Test NightlySave yes
wait
message
-list volume
+list volumes
@# Must choose vol58
@# Pool + Recycled + Enabled + InChanger
run level=full pool=Test NightlySave yes
run level=full pool=Test NightlySave yes
wait
message
-list volume
+list volumes
@# Must choose vol55
@# Pool + Full + Recycle + Enabled + InChanger
run level=full pool=Test NightlySave yes
wait
message
-list volume
+list volumes
@# Must choose vol54
@# No more in Test pool, get from scratch
@# vol52 is Append, but have 1 job and MaxJob
run level=full pool=Test NightlySave yes
wait
message
-list volume
+list volumes
@# Must choose vol53
@# Scratch + Purged + Enabled + InChanger + LastW
run level=full pool=Test NightlySave yes
wait
-message
-list volume
+messages
+list volumes
restore fileset="Full Set" pool=Test where=${cwd}/tmp/bacula-restores select all done
yes
wait
@#wait
@#message
@#list volume
+quit
EOF
run_bconsole
else
diff tmp/normal tmp/real > /dev/null
fi
-
dstat=$?
wait
message
list volume
+wait
quit
EOF
else
diff tmp/normal4 tmp/real4 > /dev/null
fi
-
-dstat=`expr $? + $dstat`
+if [ $dstat -eq 0 ] ; then
+ dstat=$?
+ if [ $dstat -ne 0 ] ; then
+ echo "normal4 and real4 differ!!!!!"
+ echo "normal4 and real4 differ!!!!!" >>test.out
+ fi
+fi
# try to break the old code
# in this situation, we have 1 available volume (vol50) and bacula will try to use
bstat=$?
fi
-check_for_zombie_jobs storage=LTO3
+check_for_zombie_jobs storage=LTO3 client=${HOST}-fd
stop_bacula
check_two_logs