From 2175fe8adae74d470cb743e2eb55d3623bf9b62c Mon Sep 17 00:00:00 2001 From: Salt Date: Mon, 8 Jun 2020 08:49:39 -0500 Subject: [PATCH] Exclude logfiles in backup script --- roles/backups/templates/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/backups/templates/backup.sh b/roles/backups/templates/backup.sh index 8bb3015..f23acd6 100644 --- a/roles/backups/templates/backup.sh +++ b/roles/backups/templates/backup.sh @@ -56,6 +56,6 @@ done s3bucket="{{ aws_backup_bucket }}" if command -v aws > /dev/null 2>&1 && aws s3 ls "s3://$s3bucket"; then log "Moving files to S3 bucket $s3bucket" - aws s3 mv "$BACKUPSDIR" "s3://$s3bucket" --storage-class STANDARD_IA --recursive + aws s3 mv "$BACKUPSDIR" "s3://$s3bucket" --exclude "*.log" --storage-class STANDARD_IA --recursive fi