mirror of https://github.com/digint/btrbk
btrbk: add target_type to "list config" table
parent
4f8274b28e
commit
4fa6dfde25
5
btrbk
5
btrbk
|
@ -199,8 +199,8 @@ my %table_formats = (
|
||||||
raw => [ qw( target_url target_host target_port target_path target_rsh ) ],
|
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 ) ],
|
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 ) ],
|
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 snapshot_preserve target_preserve source_rsh target_rsh ) ],
|
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 ) ],
|
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,
|
my $targeth = { %$subvolh,
|
||||||
vinfo_prefixed_keys("target", $droot),
|
vinfo_prefixed_keys("target", $droot),
|
||||||
target_preserve => format_preserve_matrix(config_preserve_hash($droot, "target")),
|
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") {
|
if($action_list eq "target") {
|
||||||
next if($target_uniq{$droot->{URL}});
|
next if($target_uniq{$droot->{URL}});
|
||||||
|
|
Loading…
Reference in New Issue