I found a little bug in amoverview. I curently have a couple of days dumps
in the holding directory and when I ran amoverview I get:
amanda@moca:~> amoverview TIZ
bad date 20020418: in 20020418: found Amanda directory.
bad date 20020420: in 20020420: found Amanda directory.
date 04 04 04 04 04
host disk 16 17 18 19 20
A tiny bit of research showed that this was related to the output from
amadmin find which beginss:
amanda@moca:~> amadmin TIZ find
Scanning /data/amandahold...
20020418: found Amanda directory.
20020420: found Amanda directory.
date host disk lv tape or file file status
2002-04-16 moca / 0 TIZdaily01 3 OK
2002-04-18 moca / 1 /data/amandahold/20020418/moca._.1 0 OK
amoverview parses the output of amadmin find and doesn't handle the "found
Amanda directory" lines. The fix is so trivial that I'm just mentioning it
inline here because that's actually smaller than the patch :-) After
next if $date eq "";
insert an extra line
next if $host eq "found";
I don't know if that's the "best" solution - another solution is
next if $date =~ /:$/;
Anyway, I've patched my amoverview, and perhaps the maintainer of amoverview
can either take my patch on board or do something else appropriate.
Regards,
Niall O Broin