Update mm-scripts.sh

This commit is contained in:
2023-07-10 20:43:52 -05:00
parent ce5e5ee24f
commit 594454de9f

View File

@@ -1171,8 +1171,8 @@ 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 ] &&
fulldate="${full_date[1]}/${full_date[2]}/${full_date[0]} @ ${full_date[3]}:${full_date[4]}"
[ ${full_date[3]} -gt 12 ] && hr=`expr ${full_date[3]}-12`; ma=pm || hr=${full_date[3]}; ma=am
fulldate="${full_date[1]}/${full_date[2]}/${full_date[0]} @ ${hr}:${full_date[4]}${ma}"
echo -e "[1] ${fulldate} - Full Backup ${fname}"
f=2