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 7fdbdc2 commit a87aba8
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 @@ -69,7 +69,7 @@ func (br *Runner) UploadBackup(ctx context.Context) error {
path.Dir(br.RedisDBFile), br.BackupFile(),
)),
// gzip /data/redis-backup-<shard>-<server>-<timestamp>.rdb
ssh.NewCommand(fmt.Sprintf("gzip %s/%s", path.Dir(br.RedisDBFile), br.BackupFile())),
ssh.NewCommand(fmt.Sprintf("gzip -1 %s/%s", path.Dir(br.RedisDBFile), br.BackupFile())),
// script to upload the backup to s3 using boto3
ssh.NewScript(
fmt.Sprintf("%s=%s %s=%s %s=%s python -",
Expand Down

0 comments on commit a87aba8

Please sign in to comment.