Skip to content

Commit

Permalink
Fix mutlipart size
Browse files Browse the repository at this point in the history
  • Loading branch information
lululombard committed Dec 6, 2022
1 parent ff05ace commit 5c46b55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion rcsm/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ func getS3BackupClient() (*s3.S3, *s3manager.Uploader) {
}

s3BackupClient = s3.New(s3Session)
s3BackupUploader = s3manager.NewUploader(s3Session)
s3BackupUploader = s3manager.NewUploader(s3Session, func(u *s3manager.Uploader) {
u.PartSize = 64 * 1024 * 1024 // 64MB part size, total max file size will be 64 GB
})
}
return s3BackupClient, s3BackupUploader
}
2 changes: 1 addition & 1 deletion rcsm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

var (
// Version is the current version of rcsm
Version string = "1.1.0"
Version string = "1.1.1"
// EnvFile is the path to the .env file config
EnvFile string = ".env"

Expand Down

0 comments on commit 5c46b55

Please sign in to comment.