From 898874d33ce6c97ef5db9a7f5c4dc8c933d7217c Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Mon, 27 Jun 2011 15:18:30 +1000 Subject: [PATCH] Don't use %N for the timestamped log file since *BSD (including OS X) doesn't support it, instead use %S that uses the number of seconds. --- automysqlbackup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automysqlbackup.sh b/automysqlbackup.sh index 0f7ca4d..7be5ed3 100755 --- a/automysqlbackup.sh +++ b/automysqlbackup.sh @@ -256,8 +256,8 @@ DOM=`${DATEC} +%d` # Date of the Month e.g. 27 M=`${DATEC} +%B` # Month e.g January W=`${DATEC} +%V` # Week Number e.g 37 VER=2.5.1 # Version Number -LOGFILE=${BACKUPDIR}/${DBHOST}-`${DATEC} +%N`.log # Logfile Name -LOGERR=${BACKUPDIR}/ERRORS_${DBHOST}-`${DATEC} +%N`.log # Logfile Name +LOGFILE=${BACKUPDIR}/${DBHOST}-`${DATEC} +%S`.log # Logfile Name +LOGERR=${BACKUPDIR}/ERRORS_${DBHOST}-`${DATEC} +%S`.log # Logfile Name BACKUPFILES="" OPT="--quote-names --opt" # OPT string for use with mysqldump ( see man mysqldump )