From 237debdcc02fde6c14002eb1a9c4a3566cd00eff Mon Sep 17 00:00:00 2001 From: keithhubner Date: Thu, 9 May 2024 11:20:18 +0100 Subject: [PATCH] Added some logging for cleanup --- backup_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup_script.sh b/backup_script.sh index d59ff66..e0b3e62 100644 --- a/backup_script.sh +++ b/backup_script.sh @@ -63,7 +63,7 @@ function run_s3_backup() { } function cleanup() { - echo "Running Cleanup...." + echo "Running Cleanup....removing any backups older than $OLDER_THAN_DAYS days." # List all files in the S3 bucket with their timestamps s3cmd --host=${AWS_HOST} --host-bucket=s3://${BUCKET} ls --recursive s3://${S3_PATH} | while read -r line; do # Extract the date and file path