X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=perl%2FAmanda%2FCmdline.pod;h=9746795e71183eb0e9325ff25e2d0472de752536;hb=b116e9366c7b2ea2c2eb53b0a13df4090e176235;hp=2758acd941959e932e5f2728eeec35a9df25f614;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e;p=debian%2Famanda diff --git a/perl/Amanda/Cmdline.pod b/perl/Amanda/Cmdline.pod index 2758acd..9746795 100644 --- a/perl/Amanda/Cmdline.pod +++ b/perl/Amanda/Cmdline.pod @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Zmanda, Inc. All Rights Reserved. + * Copyright (c) 2009, 2010 Zmanda, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published @@ -28,7 +28,7 @@ Amanda::Cmdline - utilities for handling command lines use Amanda::Cmdline; - my $spec = Amanda::Cmdline::dumpspec_t->new($host, $disk, $datestamp, $level); + my $spec = Amanda::Cmdline::dumpspec_t->new($host, $disk, $datestamp, $level, $write_timestamp); print "host: $spec->{'host'}; disk: $spec->{'disk'}\n"; my @specs = Amanda::Cmdline::parse_dumpspecs(["host", "disk", "date"], @@ -36,17 +36,35 @@ Amanda::Cmdline - utilities for handling command lines =head1 Amanda::Cmdline::dumpspec_t Objects -=head2 Instance Variables +Note that this class was called C in older versions; +that name will still work, but is deprecated. + +=head2 Keys + +Each key contains a match expression, in the form of a string, or undef. Note +that the values of these keys are read-only. =over -=item C<$host> +=item C<< $ds->{'host'} >> + +Hostname + +=item C<< $ds->{'disk'} >> + +Disk name + +=item C<< $ds->{'datestamp'} >> -=item C<$disk> +Dump timestamp. -=item C<$datestamp> +=item C<< $ds->{'level'} >> -=item C<$level> +Dump level + +=item C<< $ds->{'write_timestamp'} >> + +Timestamp when the dump is written to storage media. =back @@ -54,13 +72,13 @@ Amanda::Cmdline - utilities for handling command lines =over -=item C +=item C<< $ds->format() >> Format the dumpspec as a string. =back -=head1 Functions +=head1 Package Functions =over @@ -68,14 +86,25 @@ Format the dumpspec as a string. This function returns a string representing the formatted form of the given dumpspec. This formatting is the same as performed by -C, but does not need a C. +C<< $ds->format() >>, but does not need a C. =item C -This function parses C<@cmdline> into a list of C objects, +This function parses C<@cmdline> into a list of C objects, according to C<$flags>, which is a logical combination of zero or more -of C<$CMDLINE_PARSE_DATESTAMP> to recognize datestamps and -C<$CMDLINE_PARSE_LEVEL> to recognize levels. +of + + $CMDLINE_PARSE_DATESTAMP - recognize datestamps + $CMDLINE_PARSE_LEVEL - recognize levels + $CMDLINE_EMPTY_TO_WILDCARD - if @cmdline is empty, make a wildcard dumpspec + +These constants are available in export tag C<:constants>. The command-line +format is + + [host [disk [datestamp [level [host [..]]]]]] + +Note that there is no facility for specifying C on the command +line. =item C