mirror of https://github.com/digint/btrbk
btrbk: do not set "--compress-algo none" on gpg command if raw_target_compress=no
Note that gpg might still compress (according to OpenPGP standard) if --compress-algo is not set. This is generally a good thing.pull/106/merge
parent
b0feaf4413
commit
3dabb507e6
3
btrbk
3
btrbk
|
@ -1268,7 +1268,8 @@ sub btrfs_send_to_file($$$$;@)
|
||||||
if($opts{encrypt}) {
|
if($opts{encrypt}) {
|
||||||
die unless($opts{encrypt}->{type} eq "gpg");
|
die unless($opts{encrypt}->{type} eq "gpg");
|
||||||
$target_filename .= '.gpg';
|
$target_filename .= '.gpg';
|
||||||
my @gpg_options = ( '--batch', '--no-tty', '--trust-model', 'always', '--compress-algo', 'none' );
|
my @gpg_options = ( '--batch', '--no-tty', '--trust-model', 'always' );
|
||||||
|
push @gpg_options, ( '--compress-algo', 'none' ) if($opts{compress}); # NOTE: if --compress-algo is not set, gpg might still compress according to OpenPGP standard.
|
||||||
push(@gpg_options, ( '--no-default-keyring', '--keyring', $opts{encrypt}->{keyring} )) if($opts{encrypt}->{keyring});
|
push(@gpg_options, ( '--no-default-keyring', '--keyring', $opts{encrypt}->{keyring} )) if($opts{encrypt}->{keyring});
|
||||||
push(@gpg_options, ( '--default-recipient', $opts{encrypt}->{recipient} )) if($opts{encrypt}->{recipient});
|
push(@gpg_options, ( '--default-recipient', $opts{encrypt}->{recipient} )) if($opts{encrypt}->{recipient});
|
||||||
push @cmd_pipe, {
|
push @cmd_pipe, {
|
||||||
|
|
Loading…
Reference in New Issue