mirror of https://github.com/digint/btrbk
btrbk: explain "orphaned" status in "stats" command, and suppress it on "list backups" command
parent
46f1e5e2e4
commit
12d435d42a
|
@ -4,6 +4,8 @@ btrbk-current
|
||||||
(close: #85).
|
(close: #85).
|
||||||
* Add syslog output of transaction log (close #82).
|
* Add syslog output of transaction log (close #82).
|
||||||
* Do not print headers to transaction log anymore.
|
* Do not print headers to transaction log anymore.
|
||||||
|
* Explain "orphaned" status in "stats" command, and suppress it on
|
||||||
|
"list backups" command (close: #76).
|
||||||
|
|
||||||
btrbk-0.23.0
|
btrbk-0.23.0
|
||||||
|
|
||||||
|
|
8
btrbk
8
btrbk
|
@ -4472,7 +4472,9 @@ MAIN:
|
||||||
if($target_vol->{btrbk_direct_leaf} && ($target_vol->{node}{BTRBK_BASENAME} eq $snapshot_name)) {
|
if($target_vol->{btrbk_direct_leaf} && ($target_vol->{node}{BTRBK_BASENAME} eq $snapshot_name)) {
|
||||||
if($incomplete_backup) { $stats_incomplete++; } else { $stats_orphaned++; }
|
if($incomplete_backup) { $stats_incomplete++; } else { $stats_orphaned++; }
|
||||||
push @data, { type => "received",
|
push @data, { type => "received",
|
||||||
status => ($incomplete_backup ? "incomplete" : "orphaned"),
|
# suppress "orphaned" status here (snapshot column is empty anyways)
|
||||||
|
# status => ($incomplete_backup ? "incomplete" : "orphaned"),
|
||||||
|
status => ($incomplete_backup ? "incomplete" : undef),
|
||||||
vinfo_prefixed_keys("target", $target_vol),
|
vinfo_prefixed_keys("target", $target_vol),
|
||||||
vinfo_prefixed_keys("source", $svol),
|
vinfo_prefixed_keys("source", $svol),
|
||||||
};
|
};
|
||||||
|
@ -4535,6 +4537,10 @@ MAIN:
|
||||||
print_header(title => "Statistics",
|
print_header(title => "Statistics",
|
||||||
config => $config,
|
config => $config,
|
||||||
time => $start_time,
|
time => $start_time,
|
||||||
|
legend => [
|
||||||
|
"up-to-date: latest snapshot is up to date with parent subvolume",
|
||||||
|
"orphaned : parent snapshot was deleted (by snapshot_preserve policy)",
|
||||||
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
print_table(\@stats_data, " ");
|
print_table(\@stats_data, " ");
|
||||||
|
|
Loading…
Reference in New Issue