Skip to content

Commit

Permalink
Set gzip compression to the minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
roivaz committed Oct 25, 2023
1 parent 7437a1b commit 6b34c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/redis/backup/s3upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (br *Runner) UploadBackup(ctx context.Context) error {
path.Dir(br.RedisDBFile), br.BackupFile(),
),
// gzip /data/redis-backup-<shard>-<server>-<timestamp>.rdb
fmt.Sprintf("gzip %s/%s", path.Dir(br.RedisDBFile), br.BackupFile()),
fmt.Sprintf("gzip -1 %s/%s", path.Dir(br.RedisDBFile), br.BackupFile()),
// AWS_ACCESS_KEY_ID=*** AWS_SECRET_ACCESS_KEY=*** s3cmd put /data/redis-backup-<shard>-<server>-<timestamp>.rdb s3://<bucket>/<path>/redis-backup-<shard>-<server>-<timestamp>.rdb
fmt.Sprintf("%s=%s %s=%s %s=%s %s s3 cp --only-show-errors %s/%s s3://%s/%s/%s",
util.AWSRegionEnvvar, br.AWSRegion,
Expand Down

0 comments on commit 6b34c16

Please sign in to comment.