if [ "$1" = "full" ]; then
DLEVEL="0"
BTYPE="full"
+ BACKUP="Full"
elif [ "$1" = "inc" ]; then
DLEVEL="1"
BTYPE="inc"
+ BACKUP="Incremental"
else
echo "Usage: $0 full|inc [nodumpdate]"
exit 1
echo
echo "#####################################################################"
-echo "Starting backup."
+echo "Starting ${BACKUP} backup."
echo "#####################################################################"
echo
#
-# Make full system backup
+# Make system backup
#
-echo "### Full System Dump Backup ###"
+echo "### ${BACKUP} System Dump Backup ###"
echo "Using backup partition: $BACKUPPART"
echo "Filesystems to dump: $FSTODUMP"
else
echo "failure!"
echo " There were problems remounting $BACKUPPART in read-write mode!"
- echo "Aborting Full System Dump Backup."
- echo "Aborted, done."
+ echo "Aborting ${BACKUP} System Dump Backup."
+ echo "Aborted."
echo "-------------------------------------------------------------------------------"
exit 1
fi
else
echo "failure!"
echo " There were problems remounting $BACKUPPART in read-only mode!"
- echo "Aborting Full System Dump Backup."
- echo "Aborted, done."
+ echo "Aborting ${BACKUP} System Dump Backup."
+ echo "Aborted."
echo "-------------------------------------------------------------------------------"
exit 1
fi
- echo "Aborting Full System Dump Backup."
- echo "Aborted, done."
+ echo "Aborting ${BACKUP} System Dump Backup."
+ echo "Aborted."
echo "-------------------------------------------------------------------------------"
exit 1
fi
else
echo "failure!"
echo " There were problems remounting $BACKUPPART in read-only mode!"
- echo "Aborting Full System Dump Backup."
- echo "Aborted, done."
+ echo "Aborting ${BACKUP} System Dump Backup."
+ echo "Aborted."
echo "-------------------------------------------------------------------------------"
exit 1
fi
- echo "Aborting Full System Dump Backup."
- echo "Aborted, done."
+ echo "Aborting ${BACKUP} System Dump Backup."
+ echo "Aborted."
echo "-------------------------------------------------------------------------------"
exit 1
fi
else
echo "failure!"
echo " There were problems remounting $BACKUPPART in read-only mode!"
- echo "Aborting Full System Dump Backup."
- echo "Aborted, done."
+ echo "Aborting ${BACKUP} System Dump Backup."
+ echo "Aborted."
echo "-------------------------------------------------------------------------------"
exit 1
fi
-echo "End of Full System Dump Backup."
+echo "End of ${BACKUP} System Dump Backup."
echo "Done."
echo "-------------------------------------------------------------------------------"