#!/bin/sh
#
+# Copyright (C) 2000-2017 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
# Run a simple backup of the Bacula build directory. Create three
# tapes, each in a different pool, then run two jobs both of which
# want the tape that is not loaded. Note, they both have
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@$out /dev/null
+@out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=200 storage=tape
run job=$JobName level=Full Pool=Default yes
run job=$JobName level=Full Pool=Default yes
run job=$JobName level=Full Pool=Default yes
+setdebug level=200 storage=tape
@sleep 10
status storage=tape
list volumes
run_bacula
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@$out /dev/null
+@out /dev/null
messages
@#
@# now do a restore