Amanda-2.6.1

Amanda::Cmdline


NAME

Amanda::Cmdline - utilities for handling command lines


SYNOPSIS

  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);


API STATUS

Will change.


Amanda::Cmdline::dumpspec_t Objects

Instance Variables

$host
$disk
$datestamp
$level

Methods

format()

Format the dumpspec as a string.


Functions

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.


SEE ALSO

the Amanda::Config manpage handles -o options itself, through config_overwrites.


ABOUT THIS PAGE

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.


Amanda-2.6.1