@output /dev/null
estimate job=$JobName listing
estimate job=$JobName listing
-estimate job=$JobName listing
messages
@$out tmp/log1.out
setdebug level=2 storage=DDS-4
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
-run job=$JobName yes
-wait
-run job=$JobName level=Full yes
+run job=$JobName level=Full yes
wait
run job=$JobName level=Full yes
wait
quit
END_OF_DATA
-run_bacula
+run_bconsole
scripts/check_for_zombie_jobs storage=DDS-4
echo "Backup 2 done"
#
# run a third job
#
-cat <<END_OF_DATA >tmp/bconcmds
-@$out /dev/null
-messages
-@$out tmp/log1.out
-run job=$JobName level=Incremental yes
-wait
-messages
-quit
-END_OF_DATA
-run_bacula
+run_bconsole
scripts/check_for_zombie_jobs storage=DDS-4
echo "Backup 3 done"
#
# run a fourth job
#
-cat <<END_OF_DATA >tmp/bconcmds
-@$out /dev/null
-messages
-@$out tmp/log1.out
-run job=$JobName level=Incremental yes
-wait
-messages
-quit
-END_OF_DATA
-
-run_bacula
+run_bconsole
scripts/check_for_zombie_jobs storage=DDS-4
+
stop_bacula
echo "Backup 4 done"