From 760ac6dd6cfb9c46cca2854ca0eb5d7ba4d27ee0 Mon Sep 17 00:00:00 2001 From: matthias Date: Mon, 24 Feb 2020 21:37:37 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ebackup.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 68e55f9..9fafdf1 100644 --- a/backup.sh +++ b/backup.sh @@ -52,8 +52,9 @@ echo "uploading" AWS_ENDPOINT_OPTION= if [ "$AWS_USE_MINIO" -eq 1 ] ; then aws configure set default.s3.signature_version s3v4 - AWS_ENDPOINT_OPTION=--endpoint-url https://${MINIO_ENDPOINT} + AWS_ENDPOINT_OPTION="--endpoint-url https://${MINIO_ENDPOINT}" fi +echo aws ${AWS_ENDPOINT_OPTION} s3 cp ~/$BACKUP_FILENAME.gpg s3://$S3_BUCKET_NAME/$BACKUP_FILENAME.gpg --storage-class DEEP_ARCHIVE || healthchck_fail "Upload Failed" aws ${AWS_ENDPOINT_OPTION} s3 cp ~/$BACKUP_FILENAME.gpg s3://$S3_BUCKET_NAME/$BACKUP_FILENAME.gpg --storage-class DEEP_ARCHIVE || healthchck_fail "Upload Failed" rm ~/$BACKUP_FILENAME.gpg echo "done"