diff --git a/src/lib/handlers/sources/tar.sh b/src/lib/handlers/sources/tar.sh index 8c126e1..75488c1 100644 --- a/src/lib/handlers/sources/tar.sh +++ b/src/lib/handlers/sources/tar.sh @@ -78,8 +78,6 @@ src_tar() { archive="${dst_path}/$(gen_backup_name "$tar_ext")" - log "Archiving $src_path to $archive ..." - # Run tar # NOTE! `exclude` and `tar_options` variables must be unquoted! # shellcheck disable=SC2086 diff --git a/src/lib/handlers/targets/cp.sh b/src/lib/handlers/targets/cp.sh index 26914d2..240b66e 100644 --- a/src/lib/handlers/targets/cp.sh +++ b/src/lib/handlers/targets/cp.sh @@ -56,12 +56,11 @@ tgt_cp() { # Copy files preserving metadata # shellcheck disable=SC2154 for backup in "${backups[@]}"; do - log "Copying file $backup to $dst_path ..." set -- cp --archive "$backup" "$dst_path" log "Run command: $*" - if "$@" 2>> "$log"; then + if "$@" 2>> "$__log_file"; then : # Success else handle_error \