Per Reedtz Thomsen > BBConfig-0.03 > BoxBackup::Config::DiskSets

Download:
BoxBackup/BBConfig-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

BoxBackup::Config::DiskSets - Access to Box Backup diskset config files

SYNOPSIS ^

  use BoxBackup::Config::DiskSets;
  $diskSets = BoxBackup::Config::DiskSets->new();

or

  use BoxBackup::Config::DiskSets;
  $file = "/etc/bbox/raidfile.conf";
  $diskSets = BoxBackup::Config::DiskSets->new($file);

  @diskNames = $diskSets->getListofDisks();
  foreach $i (@diskNames)
  {
      print "Block size of " . $i . " is " . $disksets->getParamVal($i, "BlockSize) . " bytes.\n";
  }

ABSTRACT ^

BoxBackup::Config::DiskSets is a rather simple package that lets the user have access to the data from the disk set configuration file for Box Backup. It provides methods to retrieve the data only. No creation or editing is supported.

REQUIRES ^

Config::Scoped.

DESCRIPTION ^

Allows for programmatic access to the information stored in the Box Backup 'disk set' config file, which holds the information related to each disk set in the Box Backup installation.

Methods

AUTHOR ^

Per Reedtz Thomsen (mailto:pthomsen@reedtz.com)

syntax highlighting: