various
This commit is contained in:
parent
06d6a7c077
commit
62e5a41bd0
2 changed files with 31 additions and 2 deletions
|
@ -178,6 +178,12 @@ function trigger_notify() {
|
|||
--level "$level" \
|
||||
--message "See attached log for details" \
|
||||
--title "$title"
|
||||
elif [[ "$log_path" == "" ]]; then
|
||||
"$notify_prog" \
|
||||
--invoked-by "$(basename $me_filename)" \
|
||||
--level "$level" \
|
||||
--message="$message" \
|
||||
--title="$title"
|
||||
else
|
||||
"$notify_prog" \
|
||||
--file "$log_path" \
|
||||
|
@ -360,6 +366,7 @@ test_file "$restic_repo_passwd_file"
|
|||
if [[ -z "$1" || -f "$1" ]]; then
|
||||
if [[ -z "$1" ]]; then
|
||||
say info "Running backup scripts..."
|
||||
trigger_notify "info" "Backup started" "Running all scripts from '$backup_scripts_dir'"
|
||||
|
||||
if ! [[ "$(ls -A $backup_scripts_dir)" ]]; then
|
||||
die "No scripts found in '$backup_scripts_dir'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue