diff --git a/lib/Simba/CA.pm b/lib/Simba/CA.pm index d76ff74..964f591 100644 --- a/lib/Simba/CA.pm +++ b/lib/Simba/CA.pm @@ -197,13 +197,6 @@ sub run { $self->backup2disk($target); } } - $self->log(3, "statistics:"); - for (sort keys %{ $self->{counts} }) { - $self->log(3, " $_: $self->{counts}{$_}"); - } - for (sort keys %{ $self->{times} }) { - $self->log(3, " $_: $self->{times}{$_} s"); - } $self->export(); } @@ -281,6 +274,14 @@ sub backup2disk { $self->release_fileset($target); $self->log(3, "finished backup for target host " . $target->{host} . " dir " . $target->{dir} . ": $count files"); $self->{counts}{objects} += $count; + + $self->log(3, "statistics:"); + for (sort keys %{ $self->{counts} }) { + $self->log(3, " $_: $self->{counts}{$_}"); + } + for (sort keys %{ $self->{times} }) { + $self->log(3, " $_: $self->{times}{$_} s"); + } } sub reserve_fileset {