Add region setting for logical backups to non-AWS storage (#813)

* Add region setting for logical backups to non-AWS storage
This commit is contained in:
Vito Botta
2020-02-10 11:48:24 +01:00
committed by GitHub
parent 1ee99b8194
commit a660d758a5
13 changed files with 25 additions and 1 deletions
+1
View File
@@ -40,6 +40,7 @@ function aws_upload {
[[ ! -z "$EXPECTED_SIZE" ]] && args+=("--expected-size=$EXPECTED_SIZE")
[[ ! -z "$LOGICAL_BACKUP_S3_ENDPOINT" ]] && args+=("--endpoint-url=$LOGICAL_BACKUP_S3_ENDPOINT")
[[ ! -z "$LOGICAL_BACKUP_S3_REGION" ]] && args+=("--region=$LOGICAL_BACKUP_S3_REGION")
[[ ! -z "$LOGICAL_BACKUP_S3_SSE" ]] && args+=("--sse=$LOGICAL_BACKUP_S3_SSE")
aws s3 cp - "$PATH_TO_BACKUP" "${args[@]//\'/}"