backup-automation/logger.sh
2024-08-04 23:11:08 +02:00

8 lines
145 B
Bash
Executable file

#!/bin/bash
# Function to log messages
log() {
local message="$1"
echo "$(date '+%Y-%m-%d %H:%M:%S') - $message" | tee -a "$LOG_FILE"
}