Use a correct date string +%s

This commit is contained in:
Price Hiller 2021-12-26 01:14:46 -06:00
parent fa2ce6a3ee
commit 6e45dd6f99

View File

@ -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}"