backup-automation/logger.sh
ZoopaMario 5f06ae081d
Some checks failed
Lint Bash Scripts / lint-bash (push) Failing after 27s
Refactor code base focusing on extendability
- Add a library file containing common logic to be sourced by individual backup scripts
- Integrate logger file as it so far only contained a single method
- Make sure all relevant variables are defined within the related .env file
- Remove the option to pass command line  arguments to the script
2024-12-30 08:41:58 +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"
}