feat: Increase log verbosity

This commit is contained in:
ge 2022-06-07 22:14:34 +03:00
parent 2bf83b6ddb
commit 119e339e29
2 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,8 @@ __iter=1 # iterator
# Startup log. # Startup log.
date +'Start: %d %b %Y %T %z' date +'Start: %d %b %Y %T %z'
log "Backup STARTED" log "Backup STARTED"
log -p "Library path: $LIBRARY"
log -p "Log file: $__log_file"
log -p "Configuration file: $([ "$__config" ] || echo not specified && echo "$__config")" log -p "Configuration file: $([ "$__config" ] || echo not specified && echo "$__config")"
log "Scripts to process (${__count}): ${__args[@]}" log "Scripts to process (${__count}): ${__args[@]}"

View File

@ -31,6 +31,7 @@ handler::cp() {
if [[ "$uri" == "$__main_target" ]]; then if [[ "$uri" == "$__main_target" ]]; then
: # Do nothing. Source and destination is the same : # Do nothing. Source and destination is the same
log "Nothing to do: Source and destination is the same: $__main_target"
else else
# Copy backups to another destination # Copy backups to another destination
parse_uri "$uri" parse_uri "$uri"