#!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
#
# Run a simple backup of the Bacula build directory then migrate it
# to another device.
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=10 dir
@# now do a restore
@#
@$out ${cwd}/tmp/log2.out
+setdebug level=500 storage=File
restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger
unmark *
mark *
yes
wait
messages
-@output
quit
END_OF_DATA