Amanda::Cmdline - utilities for handling command lines
use Amanda::Cmdline;
my $spec = Amanda::Cmdline::dumpspec_t->new($host, $disk, $datestamp, $level); print "host: $spec->{'host'}; disk: $spec->{'disk'}\n";
my @specs = Amanda::Cmdline::parse_dumpspecs(["host", "disk", "date"], $Amanda::Cmdline::CMDLINE_PARSE_DATESTAMP);
format()
Format the dumpspec as a string.
format_dumpspec_components($host, $disk, $datestamp, $level)
This function returns a string representing the formatted form of the
given dumpspec. This formatting is the same as performed by
format_dumpspec_components
, but does not need a dumpspec_t
.
parse_dumpspecs([@cmdline], $flags)
This function parses @cmdline
into a list of dumpspec_t
objects,
according to $flags
, which is a logical combination of zero or more
of $CMDLINE_PARSE_DATESTAMP
to recognize datestamps and
$CMDLINE_PARSE_LEVEL
to recognize levels.
header_matches_dumpspecs($hdr, [@dumpspecs])
This function compares a header to a list of dumpspecs, returning true if the
header matches at least one dumpspec. If @dumpspecs
is empty, the function
returns false.
Amanda::Config handles -o
options itself, through
config_overrides
.
This page was automatically generated Tue Nov 19 20:05:35 2013 from the Amanda source tree, and documents the most recent development version of Amanda. For documentation specific to the version of Amanda on your system, use the 'perldoc' command.