Update mm-scripts.sh
This commit is contained in:
@@ -1171,8 +1171,8 @@ SERVICERESTORE(){
|
|||||||
|
|
||||||
fulldate=$(date -r ${BACKUPDIR}/${fcheck}-full.tgz "+%y-%m-%d-%H-%M-%S")
|
fulldate=$(date -r ${BACKUPDIR}/${fcheck}-full.tgz "+%y-%m-%d-%H-%M-%S")
|
||||||
IFS='-'; read -a full_date <<< "${fulldate}"; unset IFS
|
IFS='-'; read -a full_date <<< "${fulldate}"; unset IFS
|
||||||
[ ${full_date[3]} -gt 12 ] &&
|
[ ${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]} @ ${full_date[3]}:${full_date[4]}"
|
fulldate="${full_date[1]}/${full_date[2]}/${full_date[0]} @ ${hr}:${full_date[4]}${ma}"
|
||||||
echo -e "[1] ${fulldate} - Full Backup ${fname}"
|
echo -e "[1] ${fulldate} - Full Backup ${fname}"
|
||||||
|
|
||||||
f=2
|
f=2
|
||||||
|
|||||||
Reference in New Issue
Block a user