]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/virtual-backup-test
Update restore menu 12 explanation
[bacula/bacula] / regress / tests / virtual-backup-test
index 67e9e414911b373ca51c239df2239c14bb6ea3f5..800ab152c1637240f549a092cca56d23173048cd 100755 (executable)
@@ -1,9 +1,9 @@
 #!/bin/sh
 #
-# Run a simple backup of the Bacula build directory then do a virtual
-#   backup to another device.
+# Run a simple backup of the Bacula build directory then do a 
+#   Virtual Full backup to another device.
 #
-# This script uses the virtual disk autochanger
+# This script uses the disk autochanger
 #
 TestName="virtual-backup-test"
 JobName=Vbackup
@@ -26,7 +26,7 @@ start_test
 
 # Write out bconsole commands
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
 @#setdebug level=100 storage=File
@@ -59,7 +59,6 @@ list volumes
 @# 
 @# now do a normal restore of normal backups
 @#
-@$out ${cwd}/tmp/log2.out
 setdebug level=10 dir
 restore where=${cwd}/tmp/bacula-restores select
 unmark *
@@ -78,7 +77,6 @@ list jobs
 @# 
 @# now do a restore of the consolidated Full
 @#
-@$out ${cwd}/tmp/log2.out
 restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger
 unmark *
 mark *
@@ -88,7 +86,6 @@ wait
 list volumes
 list jobs
 messages
-@output
 quit
 END_OF_DATA
 
@@ -96,6 +93,11 @@ run_bacula
 check_for_zombie_jobs storage=File
 stop_bacula
 
+#
+# We only used one log so copy it to the second log
+#  so that any restore errors will be picked up
+#
+cp -f ${cwd}/tmp/log1.out ${cwd}/tmp/log2.out
 check_two_logs
 check_restore_diff
 end_test