From e56b379cb6108101c8d65d517a456cfa0be2c449 Mon Sep 17 00:00:00 2001 From: alexanderbazhenoff Date: Sun, 7 Jan 2024 14:39:14 +0300 Subject: [PATCH] updates --- backup/bareos_pool_operations/clean_expired_bareos_volumes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/bareos_pool_operations/clean_expired_bareos_volumes.sh b/backup/bareos_pool_operations/clean_expired_bareos_volumes.sh index c6bcc2f..fa10300 100755 --- a/backup/bareos_pool_operations/clean_expired_bareos_volumes.sh +++ b/backup/bareos_pool_operations/clean_expired_bareos_volumes.sh @@ -157,8 +157,8 @@ done -echo "Performing ${POOL_ACTION} \"${POOL_NAME}\" volumes after ${POOL_EXPIRE} days," -echo "filtered by \"${POOL_FILTER}\" status... Test mode: ${DRY_RUN}" +printf "%s %s\n" "Performing '${POOL_ACTION}' '${POOL_NAME}' volumes after '${POOL_EXPIRE}' days, filtered by" \ + "'${POOL_FILTER}' status... Test mode: '${DRY_RUN}'" if [[ $POOL_ACTION = "delete" ]] || [[ $POOL_ACTION = "prune" ]] || [[ $POOL_ACTION = "purge" ]]; then cd $POOL_PATH || exit 1 FILELIST=$(find . -mtime +"$POOL_EXPIRE" -print | grep "$POOL_NAME" | sed 's/[./]//g')