Use a correct date string +%s
This commit is contained in:
parent
fa2ce6a3ee
commit
6e45dd6f99
@ -463,7 +463,7 @@ backup_configs() {
|
||||
local config_backup_directory
|
||||
|
||||
server_directory="${1}"
|
||||
config_backup_directory="${server_directory}/config-backups/$(date +s)"
|
||||
config_backup_directory="${server_directory}/config-backups/$(date +%s)/"
|
||||
log "info" "Backing up $(important ".xml configurations") in $(important "${server_directory}") to $(important "${config_backup_directory}")"
|
||||
|
||||
mkdir -p "${config_backup_directory}"
|
||||
|
Loading…
Reference in New Issue
Block a user