mirror of https://github.com/digint/btrbk
btrbk: add "backups" output format
Preparatory for single-column patchset.pull/409/head
parent
d80a8abb8a
commit
c06d94543c
10
btrbk
10
btrbk
|
@ -226,6 +226,13 @@ my %table_formats = (
|
|||
raw => [ qw( source_url source_host source_port source_path snapshot_subvolume snapshot_name status source_rsh ) ],
|
||||
},
|
||||
|
||||
backups => { # same as resolved
|
||||
# NOTE: snapshot_path is ambigous and does NOT print SUBVOL_PATH here (should be snapshot_subvolume, left as-is for compatibility)
|
||||
table => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port target_subvolume ) ],
|
||||
long => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port target_subvolume target_type ) ],
|
||||
raw => [ qw( type source_url source_host source_port source_path snapshot_path snapshot_name status target_url target_host target_port target_path target_type source_rsh target_rsh ) ],
|
||||
},
|
||||
|
||||
latest => { # same as resolved, except hiding target if not present
|
||||
# NOTE: snapshot_path is ambigous and does NOT print SUBVOL_PATH here (should be snapshot_subvolume, left as-is for compatibility)
|
||||
table => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port -target_subvolume ) ],
|
||||
|
@ -6856,6 +6863,9 @@ MAIN:
|
|||
elsif($action_resolve eq "snapshots") {
|
||||
print_formatted("snapshots", \@data);
|
||||
}
|
||||
elsif($action_resolve eq "backups") {
|
||||
print_formatted("backups", \@data);
|
||||
}
|
||||
elsif($action_resolve eq "latest") {
|
||||
print_formatted("latest", \@data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue