X-Git-Url: https://git.gag.com/?p=debian%2Famanda;a=blobdiff_plain;f=perl%2FAmanda%2FDB%2FCatalog.pm;h=f541ac503f312f525f12022216a84ed2cbe38078;hp=fe1a399df24907ba303870ed2be840b375e9ed40;hb=b116e9366c7b2ea2c2eb53b0a13df4090e176235;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e diff --git a/perl/Amanda/DB/Catalog.pm b/perl/Amanda/DB/Catalog.pm index fe1a399..f541ac5 100644 --- a/perl/Amanda/DB/Catalog.pm +++ b/perl/Amanda/DB/Catalog.pm @@ -89,7 +89,9 @@ or C<"00000000000000"> for dumps in the holding disk. =item status -(string) -- "OK", "PARTIAL", or "FAIL" +(string) -- The status of the dump - "OK", "PARTIAL", or "FAIL". If a disk +failed to dump at all, then it is not part of the catalog and thus will not +have an associated dump row. =item message @@ -101,11 +103,12 @@ or C<"00000000000000"> for dumps in the holding disk. =item kb -(integer) -- size (in kb) of this part +(integer) -- size (in kb) of the dump on disk =item orig_kb -(integer) -- size (in kb) of the complete dump (uncompress and uncrypted). +(integer) -- size (in kb) of the complete dump (before compression or encryption); undef +if not available =item sec @@ -151,7 +154,7 @@ on-media dumps) =item status -(string) -- "OK", "PARTIAL" or some other descriptor +(string) -- The status of the part - "OK", "PARTIAL", or "FAILED". =item partnum @@ -208,10 +211,21 @@ Get a list of all write timestamps, sorted in chronological order. Return the most recent write timestamp. +=item get_latest_write_timestamp(type => 'amvault') +=item get_latest_write_timestamp(types => [ 'amvault', .. ]) + +Return the timestamp of the most recent dump of the given type or types. The +available types are given below for C. + =item get_labels_written_at_timestamp($ts) Return a list of labels for volumes written at the given timestamp. +=item get_run_type($ts) + +Return the type of run made at the given timestamp. The result is one of +C, C, C, or the default, C. + =back =head2 PARTS @@ -351,9 +365,9 @@ access those values via the C attribute. This function returns a sequence of dumps. Values in C<%parameters> restrict the set of dumps that are returned. The same keys as are used for C -are available here, with the exception of C