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);
Will change.
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.
the Amanda::Config manpage handles -o
options itself, through config_overwrites
.
This page was automatically generated Fri Feb 5 19:41:21 2010 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.