#44 Remove 'invalid date' error message when performing backup-now

This commit is contained in:
Yao (Alwyn) Pan
2020-09-18 14:32:08 +10:00
parent 8bc02ee6c8
commit b38ad7a5cc

View File

@@ -394,6 +394,7 @@ move_backup() {
print_debug "Backup routines Initialized on $(date)"
### Wait for Next time to start backup
if [ "$1" != "NOW" ]; then
current_time=$(date +"%s")
today=$(date +"%Y%m%d")
@@ -409,6 +410,7 @@ print_debug "Backup routines Initialized on $(date)"
print_notice "Next Backup at $(date -d @${target_time} +"%Y-%m-%d %T %Z")"
sleep $waittime
fi
### Commence Backup