@@ -114,10 +114,10 @@
PERTABLE=yes
# Command to run before backups (uncomment to use)
- PREBACKUP="/etc/mysql-backup-pre"
+ PREBACKUP=`echo ${PREBACKUP:="/etc/automysqlbackup/mysql-backup-pre"}`
# Command run after backups (uncomment to use)
- POSTBACKUP="/etc/mysql-backup-post"
+ POSTBACKUP=`echo ${POSTBACKUP:="/etc/automysqlbackup/mysql-backup-post"}`
# doesn't show messages about rotating backups
QUIETROTA=`echo ${QUIETROTA:="no"}`
@@ -284,6 +284,7 @@
# - add option to quiet compression option if no compression is set
# - add option to quiet rotation messages
# - enable pre/post backup script for possible limitation of backup cycles
+# - fix logging to backup target directory at initial backup run (create missing directory)
# VER 2.6.8 - (2013-07-16)
# - set PATH and rename MAIL variable
# VER 2.6.7 - (2013-07-09)
@@ -540,6 +541,8 @@
exec 6>&1 # Link file descriptor #6 with stdout.
# Saves stdout.
exec > ${LOGFILE} # stdout replaced with file ${LOGFILE}.
+
+mkdir -p ${BACKUPDIR} # create backup target directory
touch ${LOGERR}
exec 7>&2 # Link file descriptor #7 with stderr.
# Saves stderr.
|