-echo "Phase 1: ### Full System Dump Backup ###"
-echo "Phase 1: Using backup partition: $BACKUPPART"
-echo "Phase 1: Filesystems to dump: $FSTODUMP"
+echo "### Full System Dump Backup ###"
+echo "Using backup partition: $BACKUPPART"
+echo "Filesystems to dump: $FSTODUMP"
- echo "Phase 1: There were problems remounting $BACKUPPART in read-write mode!"
- echo "Phase 1: Aborting Full System Dump Backup."
- echo "Phase 1: Aborted, done."
+ echo " There were problems remounting $BACKUPPART in read-write mode!"
+ echo "Aborting Full System Dump Backup."
+ echo "Aborted, done."
SREQ=`for i in $FSTODUMP;do dump -$DLEVEL -S $i 2> /dev/null;done|awk '{x=x+$1/1048576} END {printf "%6.0f\n", x}'`
SAVAILFREE=`df --block-size=1048576 |grep -Ew $BACKUPPART|awk '{printf "%6.0f\n", $4}'`
SAVAILDEL=`du -s --block-size=1048576 $BACKUPPART/$BACKUPDIR/. |awk '{printf "%6.0f\n", $1}'`
SREQ=`for i in $FSTODUMP;do dump -$DLEVEL -S $i 2> /dev/null;done|awk '{x=x+$1/1048576} END {printf "%6.0f\n", x}'`
SAVAILFREE=`df --block-size=1048576 |grep -Ew $BACKUPPART|awk '{printf "%6.0f\n", $4}'`
SAVAILDEL=`du -s --block-size=1048576 $BACKUPPART/$BACKUPDIR/. |awk '{printf "%6.0f\n", $1}'`
- echo "Phase 1: There is not enough space left in $BACKUPPART for the backup!"
- echo "Phase 1: Available: $SAVAIL MB Required: $SREQ MB."
- echo -n "Phase 1: Remounting backup partition read-only ... "
+ echo " There is not enough space left in $BACKUPPART for the backup!"
+ echo " Available: $SAVAIL MB Required: $SREQ MB."
+ echo -n "Remounting backup partition read-only ... "
- echo "Phase 1: There were problems remounting $BACKUPPART in read-only mode!"
- echo "Phase 1: Aborting Full System Dump Backup."
- echo "Phase 1: Aborted, done."
+ echo " There were problems remounting $BACKUPPART in read-only mode!"
+ echo "Aborting Full System Dump Backup."
+ echo "Aborted, done."
if [ `ls -la $BACKUPPART/$BACKUPDIR/|wc -l` -gt "3" ]; then
rm -f $BACKUPPART/$BACKUPDIR/* &> /dev/null
echo "done."
if [ `ls -la $BACKUPPART/$BACKUPDIR/|wc -l` -gt "3" ]; then
rm -f $BACKUPPART/$BACKUPDIR/* &> /dev/null
echo "done."
- echo "Phase 1: There where problems with the dump of $FSNAME ( $FS )."
- echo "Phase 1: Check logfile $BACKUPPART/$BACKUPDIR/$FSNAME.log for more info"
- echo "Phase 1: Also check log archive file $DUMPLOGARCH."
+ 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."
fi
cat $BACKUPPART/$BACKUPDIR/$FSNAME.log |gzip >> $DUMPLOGARCH
echo "-------------------------------------------------------------------------------" |gzip >> $DUMPLOGARCH
done
fi
cat $BACKUPPART/$BACKUPDIR/$FSNAME.log |gzip >> $DUMPLOGARCH
echo "-------------------------------------------------------------------------------" |gzip >> $DUMPLOGARCH
done
chmod $DUMPFILESMODE $BACKUPPART/$BACKUPDIR/* $DUMPLOGARCH &> /dev/null
chown $DUMPFILESOWN $BACKUPPART/$BACKUPDIR/* $DUMPLOGARCH &> /dev/null
echo "done."
chmod $DUMPFILESMODE $BACKUPPART/$BACKUPDIR/* $DUMPLOGARCH &> /dev/null
chown $DUMPFILESOWN $BACKUPPART/$BACKUPDIR/* $DUMPLOGARCH &> /dev/null
echo "done."
- echo "Phase 1: There are problems with the directory structure."
- echo "Phase 1: Check dirs: $BACKUPPART/$BACKUPDIR"
- echo -n "Phase 1: Remounting backup partition read-only ... "
+ echo " There are problems with the directory structure."
+ echo " Check dirs: $BACKUPPART/$BACKUPDIR"
+ echo -n "Remounting backup partition read-only ... "
- echo "Phase 1: There were problems remounting $BACKUPPART in read-only mode!"
- echo "Phase 1: Aborting Full System Dump Backup."
- echo "Phase 1: Aborted, done."
+ echo " There were problems remounting $BACKUPPART in read-only mode!"
+ echo "Aborting Full System Dump Backup."
+ echo "Aborted, done."
- echo "Phase 1: There were problems remounting $BACKUPPART in read-only mode!"
- echo "Phase 1: Aborting Full System Dump Backup."
- echo "Phase 1: Aborted, done."
+ echo " There were problems remounting $BACKUPPART in read-only mode!"
+ echo "Aborting Full System Dump Backup."
+ echo "Aborted, done."