Dump completed message and changed time format
This commit is contained in:
@@ -131,7 +131,7 @@ if [ `ls ${dir} | grep ${prefix} | wc -l` -ge "${copies}" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! "${quiet}" ] ; then
|
if [ ! "${quiet}" ] ; then
|
||||||
echo "Starting database dump (`date +\"%Y-%m-%d %H:%M:%S\"`)" ;
|
echo "Starting database dump (`date +\"%H:%M:%S\"`)" ;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
date=`date +"%y%m%d.%H%M%S"` ;
|
date=`date +"%y%m%d.%H%M%S"` ;
|
||||||
@@ -144,12 +144,16 @@ mysqldump ${mysqlparams} > ${dump_file_name} ;
|
|||||||
if [ "${compress}" ] ; then
|
if [ "${compress}" ] ; then
|
||||||
|
|
||||||
if [ ! "${quiet}" ] ; then
|
if [ ! "${quiet}" ] ; then
|
||||||
echo "Compressing dump (`date +\"%Y-%m-%d %H:%M:%S\"`)..." ;
|
echo "Compressing dump (`date +\"%H:%M:%S\"`)..." ;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gzip ${dump_file_name} ;
|
gzip ${dump_file_name} ;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! "${quiet}" ] ; then
|
||||||
|
echo "atabase dump completed (`date +\"%H:%M:%S\"`)..." ;
|
||||||
|
fi
|
||||||
|
|
||||||
rm -f ${mypidfile} ;
|
rm -f ${mypidfile} ;
|
||||||
|
|
||||||
exit 0 ;
|
exit 0 ;
|
||||||
Reference in New Issue
Block a user