Skip to content

Commit 6b34c16

Browse files
committed
Set gzip compression to the minimum
1 parent 7437a1b commit 6b34c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/redis/backup/s3upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (br *Runner) UploadBackup(ctx context.Context) error {
5959
path.Dir(br.RedisDBFile), br.BackupFile(),
6060
),
6161
// gzip /data/redis-backup-<shard>-<server>-<timestamp>.rdb
62-
fmt.Sprintf("gzip %s/%s", path.Dir(br.RedisDBFile), br.BackupFile()),
62+
fmt.Sprintf("gzip -1 %s/%s", path.Dir(br.RedisDBFile), br.BackupFile()),
6363
// 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
6464
fmt.Sprintf("%s=%s %s=%s %s=%s %s s3 cp --only-show-errors %s/%s s3://%s/%s/%s",
6565
util.AWSRegionEnvvar, br.AWSRegion,

0 commit comments

Comments
 (0)