#!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
#
# Run a simple backup with encryption and no other options
# (i.e. no compression and no sparse handling) of the
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@$out /dev/null
+@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
check_for_zombie_jobs storage=File
stop_bacula
-du -s build
-du -s ${cwd}/tmp/bacula-restores/
+du -s build >${cwd}/tmp/log2.out
+du -s ${cwd}/tmp/bacula-restores/ >${cwd}/tmp/log2.out
check_two_logs
check_restore_diff