From 231c704bd67b3a1e4f404d78936d0b5dc67499fd Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 9 Jun 2020 05:14:47 -0500 Subject: [PATCH] Supress errors when pushing to S3 --- roles/backups/templates/backup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/backups/templates/backup.sh b/roles/backups/templates/backup.sh index f23acd6..e7d85a9 100644 --- a/roles/backups/templates/backup.sh +++ b/roles/backups/templates/backup.sh @@ -56,6 +56,10 @@ 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" --exclude "*.log" --storage-class STANDARD_IA --recursive + aws s3 mv "$BACKUPSDIR" "s3://$s3bucket" \ + --recursive \ + --only-show-errors \ + --exclude "*.log" \ + --storage-class STANDARD_IA fi