-$Id: CHANGES,v 1.291 2008/04/17 15:29:47 stelian Exp $
+$Id: CHANGES,v 1.292 2008/05/05 09:25:27 stelian Exp $
Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx)
=====================================================================
Thanks to Kenneth Porter <shiva@sewingwitch.com> for the bug
report.
-9. Cleanup the output of the 'cron_dump_to_disk' example.
+9. Many improvements to the 'cron_dump_to_disk' example.
Thanks to Aaron S. Hawley <ashawley@users.sourceforge.net> for
the patch.
# Configuration Parameters
#
-BACKUPPART="/backup"
-BACKUPDIR="current"
+BACKUPPART=${BACKUPPART:-"/backup"}
+BACKUPDIR=${BACKUPDIR:-"current"}
DUMPLOGARCH="$BACKUPPART/backup.dump.log.gz"
-FSTODUMP="/ /var /home /mnt/hdb1 /usr"
+FSTODUMP=${FSTODUMP:-/ /var /home /mnt/hdb1 /usr}
DUMPFILESMODE="0644"
DUMPFILESOWN="root.root"
if [ `expr $SAVAIL - $SREQ` -gt "0" ]; then
echo "done."
- echo " Available: $SAVAIL MB Required: $SREQ MB."
+ echo "Available: $SAVAIL MB Required: $SREQ MB."
else
echo "no enough space!"
- echo " There is not enough space left in $BACKUPPART for the backup!"
- echo " Available: $SAVAIL MB Required: $SREQ MB."
+ 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 ... "
if ( mount $BACKUPPART -o remount,ro &> /dev/null ) then
echo "done."
else
echo "failure!"
- echo " There were problems remounting $BACKUPPART in read-only mode!"
+ echo "There were problems remounting $BACKUPPART in read-only mode!"
echo "Aborting ${BACKUP} System Dump Backup."
echo "Aborted."
echo "-------------------------------------------------------------------------------"
FSNAME=`echo $FS|tr / _|cut -b 2-`
fi
sync
- echo -n " Starting dump of $FSNAME ( $FS ) ... "
+ echo -n "Starting dump of $FSNAME ( $FS ) ... "
if ( dump -$DLEVEL $UPDATEDDATE -z -M -s 27306 -f $BACKUPPART/$BACKUPDIR/$FSNAME.$BTYPE. $FS &> $BACKUPPART/$BACKUPDIR/$FSNAME.log ) then
echo "done."
else
echo "problems!"
- 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 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
else
echo "problems!"
- echo " There are problems with the directory structure."
- echo " Check dirs: $BACKUPPART/$BACKUPDIR"
+ echo "There are problems with the directory structure."
+ echo "Check dirs: $BACKUPPART/$BACKUPDIR"
echo -n "Remounting backup partition read-only ... "
if ( mount $BACKUPPART -o remount,ro &> /dev/null ) then
echo "done."
else
echo "failure!"
- echo " There were problems remounting $BACKUPPART in read-only mode!"
+ echo "There were problems remounting $BACKUPPART in read-only mode!"
echo "Aborting ${BACKUP} System Dump Backup."
echo "Aborted."
echo "-------------------------------------------------------------------------------"
echo "done."
else
echo "failure!"
- echo " There were problems remounting $BACKUPPART in read-only mode!"
+ echo "There were problems remounting $BACKUPPART in read-only mode!"
echo "Aborting ${BACKUP} System Dump Backup."
echo "Aborted."
echo "-------------------------------------------------------------------------------"
exit 1
fi
-echo "End of ${BACKUP} System Dump Backup."
+echo "### End of ${BACKUP} System Dump Backup ###"
echo "Done."
echo "-------------------------------------------------------------------------------"