From 5413aced44e5dd052812ff85ecc05c64d07d2113 Mon Sep 17 00:00:00 2001 From: Naum Soloveychik Date: Sun, 12 Jan 2020 00:09:44 +0300 Subject: [PATCH] Dump completed message and changed time format --- mysql_backup.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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