Update mm-scripts.sh

This commit is contained in:
2023-07-10 20:47:39 -05:00
parent 7c26258570
commit 7095dfd93c

View File

@@ -1172,6 +1172,7 @@ SERVICERESTORE(){
fulldate=$(date -r ${BACKUPDIR}/${fcheck}-full.tgz "+%y-%m-%d-%H-%M-%S")
IFS='-'; read -a full_date <<< "${fulldate}"; unset IFS
[ ${full_date[3]} -gt 12 ] && hr=`expr ${full_date[3]} - 12`; ma=pm || hr=${full_date[3]}; ma=am
[ ${hr} -lt 10 ] && hr=" ${hr}"
fulldate="${full_date[1]}/${full_date[2]}/${full_date[0]} @ ${hr}:${full_date[4]}${ma}"
echo -e "[1] ${fulldate} - Full Backup ${fname}"