backup-automation/logger.sh
ZoopaMario 2096e5b95e
Some checks failed
Lint Bash Scripts / lint-bash (push) Failing after 25s
Check Commit Messages / check-commit-message (pull_request) Successful in 14s
Lint Bash Scripts / lint-bash (pull_request) Failing after 24s
WIP Refactor code base
Add a library file containing common logic to be sourced by individual backup scripts
2024-12-30 01:56:24 +01:00

7 lines
114 B
Bash
Executable file

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