mirror of https://github.com/digint/btrbk
btrbk: add archive related summary
Note that "no target action" for archive is replaced by "<no_action>", for consistency with action run: [-] /path/to/target/snapshot_basename.* is now displayed as: <no_action>pull/542/head
parent
6d047cbaec
commit
6f1145c279
21
btrbk
21
btrbk
|
@ -4919,12 +4919,12 @@ sub print_header(@)
|
||||||
}
|
}
|
||||||
if($args{options} && (scalar @{$args{options}})) {
|
if($args{options} && (scalar @{$args{options}})) {
|
||||||
print "\nOptions:\n ";
|
print "\nOptions:\n ";
|
||||||
print join("\n ", @{$args{options}});
|
print join("\n ", grep(defined, @{$args{options}}));
|
||||||
print "\n";
|
print "\n";
|
||||||
}
|
}
|
||||||
if($args{legend}) {
|
if($args{legend}) {
|
||||||
print "\nLegend:\n ";
|
print "\nLegend:\n ";
|
||||||
print join("\n ", @{$args{legend}});
|
print join("\n ", grep(defined, @{$args{legend}}));
|
||||||
print "\n";
|
print "\n";
|
||||||
}
|
}
|
||||||
print "--------------------------------------------------------------------------------\n";
|
print "--------------------------------------------------------------------------------\n";
|
||||||
|
@ -7054,7 +7054,14 @@ MAIN:
|
||||||
}
|
}
|
||||||
|
|
||||||
if(@subvol_out) {
|
if(@subvol_out) {
|
||||||
push @out, "$svol->{PRINT}", @subvol_out, "";
|
if($action_archive) {
|
||||||
|
my $snaproot = vinfo_snapshot_root($svol);
|
||||||
|
my $snapshot_basename = config_key($svol, "snapshot_name");
|
||||||
|
push @out, "$snaproot->{PRINT}/${snapshot_basename}.*";
|
||||||
|
} else {
|
||||||
|
push @out, "$svol->{PRINT}";
|
||||||
|
}
|
||||||
|
push @out, @subvol_out, "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7065,14 +7072,14 @@ MAIN:
|
||||||
push @cmdline_options, "$preserve_snapshots: Preserved all snapshots" if($preserve_snapshots);
|
push @cmdline_options, "$preserve_snapshots: Preserved all snapshots" if($preserve_snapshots);
|
||||||
push @cmdline_options, "$preserve_backups: Preserved all backups" if($preserve_backups);
|
push @cmdline_options, "$preserve_backups: Preserved all backups" if($preserve_backups);
|
||||||
|
|
||||||
print_header(title => "Backup Summary",
|
print_header(title => $action_archive ? "Archive Summary" : "Backup Summary",
|
||||||
config => $config,
|
config => $config,
|
||||||
time => $start_time,
|
time => $start_time,
|
||||||
options => \@cmdline_options,
|
options => \@cmdline_options,
|
||||||
legend => [
|
legend => [
|
||||||
"=== up-to-date subvolume (source snapshot)",
|
$action_archive && "++. created directory",
|
||||||
"++. created directory",
|
$action_run && "=== up-to-date subvolume (source snapshot)",
|
||||||
"+++ created subvolume (source snapshot)",
|
$action_run && "+++ created subvolume (source snapshot)",
|
||||||
"--- deleted subvolume",
|
"--- deleted subvolume",
|
||||||
"*** received subvolume (non-incremental)",
|
"*** received subvolume (non-incremental)",
|
||||||
">>> received subvolume (incremental)",
|
">>> received subvolume (incremental)",
|
||||||
|
|
Loading…
Reference in New Issue