btrbk: add target_type to "list config" table

pull/358/head
Axel Burri 2020-12-14 03:57:15 +01:00
parent 4f8274b28e
commit 4fa6dfde25
1 changed files with 3 additions and 2 deletions

5
btrbk
View File

@ -199,8 +199,8 @@ my %table_formats = (
raw => [ qw( target_url target_host target_port target_path target_rsh ) ],
},
list => { table => [ qw( -source_host -source_port source_subvolume snapshot_path snapshot_name -target_host -target_port target_path ) ],
long => [ qw( -source_host -source_port source_subvolume snapshot_path snapshot_name -target_host -target_port target_path snapshot_preserve target_preserve ) ],
raw => [ qw( source_url source_host source_port source_subvolume snapshot_path snapshot_name target_url target_host target_port target_path snapshot_preserve target_preserve source_rsh target_rsh ) ],
long => [ qw( -source_host -source_port source_subvolume snapshot_path snapshot_name -target_host -target_port target_path target_type snapshot_preserve target_preserve ) ],
raw => [ qw( source_url source_host source_port source_subvolume snapshot_path snapshot_name target_url target_host target_port target_path target_type snapshot_preserve target_preserve source_rsh target_rsh ) ],
},
resolved => { table => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port -target_subvolume ) ],
@ -6530,6 +6530,7 @@ MAIN:
my $targeth = { %$subvolh,
vinfo_prefixed_keys("target", $droot),
target_preserve => format_preserve_matrix(config_preserve_hash($droot, "target")),
target_type => $droot->{CONFIG}{target_type}, # "send-receive" or "raw"
};
if($action_list eq "target") {
next if($target_uniq{$droot->{URL}});