list objects
sql
@$out $tmp/objs_count
-select count(*) from restoreobject;
+select count(*) from Object;
quit
END_OF_DATA
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
sql
@$out $tmp/objs_count_double_bscan
-select count(*) from restoreobject;
+select count(*) from Object;
quit
quit
# Check if there are no duplicates
objs_after_bscan=`cat tmp/objs_count_double_bscan | grep '|' | cut -d'|' -f2 | tail -1`
-if [ $objs_after_bscan -ne ${objs_orig} ]; then
+if [ ${objs_after_bscan} -ne ${objs_orig} ]; then
print_debug "ERROR: Running bscan twice produced some duplicates of plugin objects. \
Original count: ${objs_orig}, after second bscan: ${objs_after_bscan}"
bstat=1
llist pluginrestoreconf jobid=1
sql
@$out $tmp/robjs_count
-select count(*) from restoreobject;
+select count(*) from RestoreObject;
quit
END_OF_DATA
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
sql
@$out $tmp/robjs_count_double_bscan
-select count(*) from restoreobject;
+select count(*) from RestoreObject;
-quit
quit
END_OF_DATA
# Check if there are no duplicates
robjs_after_bscan=`cat tmp/robjs_count_double_bscan | grep '|' | cut -d'|' -f2 | tail -1`
-if [ $robjs_after_bscan -ne ${robjs_orig} ]; then
+if [ ${robjs_after_bscan} -ne ${robjs_orig} ]; then
print_debug "ERROR: Running bscan twice produced some duplicates of restore objects. \
Original count: ${robjs_orig}, after second bscan: ${robjs_after_bscan}"
bstat=1
print_debug "ERROR: should find Migration Error in $tmp/log2.out"
estat=1
fi
-#stop_bacula
+
+stop_bacula
end_test
fi
n_OK=`cat ${cwd}/tmp/log3.out | grep "status: T" | wc -l`
-if [ $n_OK -ne 2 ]; then
+if [ ${n_OK} -ne 2 ]; then
estat=1
print_debug "Wrong count of \'T\' status for objects, expected 2, got: ${n_OK}"
fi
n_UNSET=`cat ${cwd}/tmp/log3.out | grep "status: U" | wc -l`
-if [ $n_UNSET -ne 4 ]; then
+if [ ${n_UNSET} -ne 4 ]; then
estat=1
print_debug "Wrong count of \'U\' status for objects, expected 4, got: ${n_UNSET}"
fi
Name = "StoreGroupJob"
Type = Backup
Messages = Standard
- Client = VBox-fd
+ JobDefs = DefaultJob
FileSet = "Full Set"
Pool = StorePool
Maximum Concurrent Jobs = 10