mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 21:33:28 +01:00
#44 Remove 'invalid date' error message when performing backup-now
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user