backup-automation/logger.sh

8 lines
145 B
Bash
Raw Normal View History

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