| BBConfig documentation | view source | Contained in the BBConfig distribution. |
BoxBackup::Config::DiskSets - Access to Box Backup diskset config files
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";
}
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.
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.
Per Reedtz Thomsen (mailto:pthomsen@reedtz.com)
| BBConfig documentation | view source | Contained in the BBConfig distribution. |