diff --git a/mysql_backup.sh b/mysql_backup.sh index a1eee6d..8d6021e 100755 --- a/mysql_backup.sh +++ b/mysql_backup.sh @@ -131,7 +131,7 @@ if [ `ls ${dir} | grep ${prefix} | wc -l` -ge "${copies}" ] ; then fi if [ ! "${quiet}" ] ; then - echo "Starting database dump (`date +\"%Y-%m-%d %H:%M:%S\"`)" ; + echo "Starting database dump (`date +\"%H:%M:%S\"`)" ; fi date=`date +"%y%m%d.%H%M%S"` ; @@ -144,12 +144,16 @@ mysqldump ${mysqlparams} > ${dump_file_name} ; if [ "${compress}" ] ; then if [ ! "${quiet}" ] ; then - echo "Compressing dump (`date +\"%Y-%m-%d %H:%M:%S\"`)..." ; + echo "Compressing dump (`date +\"%H:%M:%S\"`)..." ; fi gzip ${dump_file_name} ; fi +if [ ! "${quiet}" ] ; then + echo "atabase dump completed (`date +\"%H:%M:%S\"`)..." ; +fi + rm -f ${mypidfile} ; exit 0 ; \ No newline at end of file