- echo " There where problems with the dump of $FSNAME ( $FS )."
- echo " Check logfile $BACKUPPART/$BACKUPDIR/$FSNAME.log for more info"
- echo " Also check log archive file $DUMPLOGARCH."
+ echo "There were problems with the dump of $FSNAME ( $FS )."
+ echo "Check log file at $BACKUPPART/$BACKUPDIR/$FSNAME.log.gz"
+ echo "Also check log archive file $DUMPLOGARCH."
+ fi
+
+ echo -n "Verifying dump of $FSNAME ( $FS ) ... "
+ echo "-------------------------------------------------------------------------------" >> $BACKUPPART/$BACKUPDIR/$FSNAME.log
+ echo "Result of dump for $FSNAME ( $FS ):" >> $BACKUPPART/$BACKUPDIR/$FSNAME.log
+ if ( restore -C -M -f $BACKUPPART/$BACKUPDIR/$FSNAME.$BTYPE. >> $BACKUPPART/$BACKUPDIR/$FSNAME.log 2>&1 ) then
+ echo "done."
+ else
+ echo "problems!"
+ echo "There were problems verifying the dump of $FSNAME ( $FS )."
+ echo "Check log file $BACKUPPART/$BACKUPDIR/$FSNAME.log.gz for more info"