backup-automation/logger.sh

7 lines
114 B
Bash
Raw Normal View History

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