File tree 3 files changed +14
-4
lines changed
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -512,11 +512,13 @@ 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-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}}
518
- # # Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for backups, this is optional
519
- # # encryption: 'AES256'
519
+ # end-multipart
520
+ # # Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for backups, this is optional
521
+ # # encryption: 'AES256'
520
522
# Fog storage connection settings, see http://fog.io/storage/ .
521
523
# end-aws
522
524
# start-gcs
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,14 @@ 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
+ if [[ -z ${AWS_BACKUP_MULTIPART_CHUNK_SIZE} ]]; then
790
+ exec_as_git sed -i " /#start-multipart/,/#end-multipart/d" ${GITLAB_CONFIG}
791
+ fi
792
+
793
+ if [[ -z ${AWS_BACKUP_MULTIPART_CHUNK_SIZE} ]]; then
794
+ exec_as_git sed -i " /#start-multipart/,/#end-multipart/d" ${GITLAB_CONFIG}
795
+ fi
796
+
789
797
if [[ -z ${AWS_BACKUP_REGION} && -z ${AWS_BACKUP_ENDPOINT} ]]; then
790
798
echo " \nMissing AWS region or endpoint. Aborting...\n"
791
799
return 1
You can’t perform that action at this time.
0 commit comments