Skip to content

Commit

Permalink
remove colons in extended filename
Browse files Browse the repository at this point in the history
  • Loading branch information
benderl committed Oct 23, 2023
1 parent 748bfbc commit c564525
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runs/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ LOGFILE="$OPENWBBASEDIR/data/log/backup.log"

useExtendedFilename=$1
if ((useExtendedFilename == 1)); then
FILENAME="openWB_backup_$(date +"%Y-%m-%d_%H:%M:%S").tar"
# only use characters supported in most OS!
# for Win see https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata
FILENAME="openWB_backup_$(date +"%Y-%m-%d_%H-%M-%S").tar"
else
FILENAME="backup.tar"
fi
Expand Down

0 comments on commit c564525

Please sign in to comment.