Update mm-scripts.sh
This commit is contained in:
@@ -1173,7 +1173,7 @@ SERVICERESTORE(){
|
||||
IFS='-'; read -a full_date <<< "${fulldate}"; unset IFS
|
||||
if [ ${full_date[3]} -gt 12 ]; then hr=`expr ${full_date[3]} - 12`; ma=pm; else hr=${full_date[3]}; ma=am; fi; [ ${hr} -lt 10 ] && hr=" ${hr}"
|
||||
fulldate="${full_date[1]}/${full_date[2]}/${full_date[0]} @ ${hr}:${full_date[4]}${ma}"
|
||||
echo -e "[${idsCL[White]}1${idsCL[Default]}]${idsCL[LightCyan]} ${fulldate} - Full Backup${idsCL[Default]}"
|
||||
echo -e "[${idsCL[White]} 1${idsCL[Default]}]${idsCL[LightCyan]} ${fulldate} - Full Backup${idsCL[Default]}"
|
||||
|
||||
f=2
|
||||
for bakfile in ${BACKUPDIR}/${fcheck}.*.tgz; do
|
||||
@@ -1182,7 +1182,8 @@ SERVICERESTORE(){
|
||||
IFS='-'; read -a f_date <<< "${fdate}"; unset IFS
|
||||
if [ ${f_date[3]} -gt 12 ]; then hr=`expr ${f_date[3]} - 12`; ma=pm; else hr=${f_date[3]}; ma=am; fi; [ ${hr} -lt 10 ] && hr=" ${hr}"
|
||||
fdate="${f_date[1]}/${f_date[2]}/${f_date[0]} @ ${hr}:${f_date[4]}${ma}"
|
||||
echo -e "[${idsCL[White]}${f}${idsCL[Default]}]${idsCL[LightCyan]} ${fdate} - Incremental Backup${idsCL[Default]}"
|
||||
[ $f -lt 10 ] && df=" $f" || df=$f
|
||||
echo -e "[${idsCL[LightCyan]}${df}${idsCL[Default]}]${idsCL[White]} ${fdate} - Incremental Backup${idsCL[Default]}"
|
||||
|
||||
f=$((f+1))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user