diff --git a/backup.sh b/backup.sh index ae7c3ad..4710709 100755 --- a/backup.sh +++ b/backup.sh @@ -121,6 +121,10 @@ make_backup() { for file in "$BACKUP_SH_SUBDIR"/**/*; do # Skip symbol links and directories [ -d "$file" ] || [ -L "$file" ] && continue + + if [ "$BACKUP_SH_VERBOSE" -eq 1 ]; then + printf "Computing checksum for '%s'...\n" "$file" + fi gethash "$file" >> "$BACKUP_SH_CHECKSUM_FILE" done shopt -u globstar dotglob @@ -176,6 +180,7 @@ extract_backup() { BACKUP_SH_VERBOSE="$4" # Decrypt the archive + echo "Decrypting backup..." gpg -a \ --quiet \ --decrypt \ @@ -206,7 +211,9 @@ extract_backup() { printf "[FATAL] - integrity error for '%s'.\n" "$file" exit 1 fi - printf "[OK] - integrity check for '%s' passed.\n" "$file" + if [ "$BACKUP_SH_VERBOSE" -eq 1 ]; then + printf "[OK] - integrity check for '%s' passed.\n" "$file" + fi done shopt -u globstar dotglob fi diff --git a/bin/backup.sh-1.0.0-2.x86_64.rpm b/bin/backup.sh-1.0.0-2.x86_64.rpm index 9e90a01..2599045 100644 Binary files a/bin/backup.sh-1.0.0-2.x86_64.rpm and b/bin/backup.sh-1.0.0-2.x86_64.rpm differ diff --git a/bin/backup.sh-1.0.0.x86_64.deb b/bin/backup.sh-1.0.0.x86_64.deb index 83fd2e4..1c6278d 100644 Binary files a/bin/backup.sh-1.0.0.x86_64.deb and b/bin/backup.sh-1.0.0.x86_64.deb differ