Skip to content

Commit

Permalink
Added some logging for cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
keithhubner committed May 9, 2024
1 parent eb616c5 commit 237debd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup_script.sh
Expand Up @@ -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
Expand Down

0 comments on commit 237debd

Please sign in to comment.