git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5294
91ce42f0-d328-0410-95d8-
f526ca767f89
wait
messages
@#
-@# now build the bsr file
+@# now build the bsr file but do not restore
@#
@$out tmp/log2.out
restore bootstrap=${cwd}/working/restore.bsr where=${cwd}/tmp/bacula-restores select all storage=File1 done
stop_bacula
mkdir -p ${cwd}/tmp/bacula-restores
-bin/bextract -b working/restore.bsr -c bin/bacula-sd.conf ${cwd}/tmp ${cwd}/tmp/bacula-restores 2>&1 >/dev/null
+if test "$debug" -eq 1 ; then
+ bin/bextract -v -b working/restore.bsr -c bin/bacula-sd.conf ${cwd}/tmp ${cwd}/tmp/bacula-restores
+else
+ bin/bextract -b working/restore.bsr -c bin/bacula-sd.conf ${cwd}/tmp ${cwd}/tmp/bacula-restores 2>&1 >/dev/null
+fi
rstat=$?
grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
bstat=$?