diff --git a/client/zzz_evobackup b/client/zzz_evobackup index 44a3833..c602571 100755 --- a/client/zzz_evobackup +++ b/client/zzz_evobackup @@ -196,9 +196,11 @@ local_tasks() { ## Dump file access control lists # dump_facl - # Remove previous error files - for error_file in $(find "${LOCAL_BACKUP_DIR}/" -type f -name '*.err' -print); do - if [ $(stat -c "%s" "${error_file}") -gt 0 ]; then + # Output error files content, if any + error_files=$(find "${LOCAL_BACKUP_DIR}/" -type f -name '*.err') + for error_file in ${error_files}; do + error_file_size=$(stat -c "%s" "${error_file}") + if [ ${error_file_size} -gt 0 ]; then printf "### Content of %s ###\n" "${error_file}" >&2 cat "${error_file}" >&2 printf "########################################\n" >&2