Skip to content

Commit

Permalink
fix: Correct timestamp for backups
Browse files Browse the repository at this point in the history
  • Loading branch information
vinanrra committed Jun 30, 2024
1 parent 38369a3 commit 8c22069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/server_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ crontab -r

# Backup the specified folder
echo "Backing up folder: $BACKUP_FOLDER"
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
TIMESTAMP=$(date +"%Y-%m-%d-%H%M%S")
BACKUP_FILE="$BACKUP_DESTINATION/sdtdserver-$TIMESTAMP.tar.gz"
tar -czvf $BACKUP_FILE $BACKUP_FOLDER

Expand Down

0 comments on commit 8c22069

Please sign in to comment.