ZoopaMario
a669256cd6
Some checks failed
Lint Bash Scripts / lint-bash (push) Failing after 24s
- 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
7 lines
114 B
Bash
Executable file
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"
|
|
}
|