Use gzip as default for backup
@@ -270,17 +270,17 @@ func startBackup(ctx context.Context, apiClient pbapi.ApiClient, opts *cliOption
}
switch *opts.compressionAlgorithm {
- case "":
+ case "none":
case "gzip":
msg.CompressionType = pbapi.CompressionType_COMPRESSION_TYPE_GZIP
default:
- return fmt.Errorf("compression algorithm %q ins invalid", *opts.compressionAlgorithm)
+ return fmt.Errorf("compression algorithm %q is invalid", *opts.compressionAlgorithm)
}
switch *opts.encryptionAlgorithm {
case "":
default:
- return fmt.Errorf("encryption is not implemente yet")
+ return fmt.Errorf("encryption is not implemented yet")
}
_, err := apiClient.RunBackup(ctx, msg)
@@ -327,7 +327,7 @@ func processCliArgs(args []string) (string, *cliOptions, error) {
backup: backupCmd,
backupType: backupCmd.Flag("backup-type", "Backup type (logical or hot)").Default("logical").Enum("logical", "hot"),
destinationType: backupCmd.Flag("destination-type", "Backup destination type (file or aws)").Default("file").Enum("file", "aws"),
- compressionAlgorithm: backupCmd.Flag("compression-algorithm", "Compression algorithm used for the backup").String(),
+ compressionAlgorithm: backupCmd.Flag("compression-algorithm", "Compression algorithm used for the backup (gzip or none)").Default("gzip").Enum("none", "gzip"),
encryptionAlgorithm: backupCmd.Flag("encryption-algorithm", "Encryption algorithm used for the backup").String(),
description: backupCmd.Flag("description", "Backup description").Required().String(),
