File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -512,9 +512,11 @@ production: &base
512
512
aws_secret_access_key : ' {{AWS_BACKUP_SECRET_ACCESS_KEY}}'
513
513
# The remote 'directory' to store your backups. For S3, this would be the bucket name.
514
514
remote_directory : ' {{AWS_BACKUP_BUCKET}}'
515
+ # start-aws-multipart
515
516
# Use multipart uploads when file size reaches 100MB, see
516
- # http://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html
517
+ # http://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html
517
518
multipart_chunk_size : {{AWS_BACKUP_MULTIPART_CHUNK_SIZE}}
519
+ # end-aws-multipart
518
520
# # Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for backups, this is optional
519
521
# # encryption: 'AES256'
520
522
# Fog storage connection settings, see http://fog.io/storage/ .
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ AWS_BACKUP_PATH_STYLE=${AWS_BACKUP_PATH_STYLE:-false}
157
157
AWS_BACKUP_ACCESS_KEY_ID=${AWS_BACKUP_ACCESS_KEY_ID}
158
158
AWS_BACKUP_SECRET_ACCESS_KEY=${AWS_BACKUP_SECRET_ACCESS_KEY}
159
159
AWS_BACKUP_BUCKET=${AWS_BACKUP_BUCKET}
160
- AWS_BACKUP_MULTIPART_CHUNK_SIZE=${AWS_BACKUP_MULTIPART_CHUNK_SIZE:- 104857600 }
160
+ AWS_BACKUP_MULTIPART_CHUNK_SIZE=${AWS_BACKUP_MULTIPART_CHUNK_SIZE}
161
161
162
162
# ## GCS BACKUPS
163
163
GCS_BACKUPS=${GCS_BACKUPS:- false}
Original file line number Diff line number Diff line change @@ -786,6 +786,11 @@ gitlab_configure_backups_aws() {
786
786
exec_as_git sed -i " /#start-aws/d" ${GITLAB_CONFIG}
787
787
exec_as_git sed -i " /#end-aws/d" ${GITLAB_CONFIG}
788
788
789
+ # Remove multipart config if we don't have it configured
790
+ if [[ -z ${AWS_BACKUP_MULTIPART_CHUNK_SIZE} ]]; then
791
+ exec_as_git sed -i " /#start-aws-multipart/,/#end-aws-multipart/d" ${GITLAB_CONFIG}
792
+ fi
793
+
789
794
if [[ -z ${AWS_BACKUP_REGION} && -z ${AWS_BACKUP_ENDPOINT} ]]; then
790
795
echo " \nMissing AWS region or endpoint. Aborting...\n"
791
796
return 1
You can’t perform that action at this time.
0 commit comments