Backup::Omni::Session::Filesystem - Return a session object for a given backup
use Backup::Omni::Session::Filesystem; my $session = Backup::Omni::Session::Filesystem->new( -host => 'esd189-aix-01', -date => '2013-01-10' ); printf("session id = %s\n", $session->sessionid);
This module will return the session object for a given filesystem backup on a particular date. It runs the omnidb command with the appropiate options. If any errors are encounterd, an exception is thrown.
This method will initialze the object. It takes four parameters.
The name of the host the backup was preformed against.
The date the backup was ran. It must be in YYYY-MM-DD format.
The path the backup was for. Defaults to '/archive'.
The label of the backup. Defaults to '/archive'.
If the session is found an object is returned. That object has the following methods defined.
This method returns the session id.
The datetime when the backup started.
The datetime when the backup finished.
The status of objec.
The size of the object.
The type of backup.
The protection level of the backup.
The retention period of the backup. It may be the same as the protection.
The version type of the backup.
The access type of the backup.
The number of warning generated during this backup.
The number of errors that were generated during this backup.
The name of the device that backup was performed on.
The id of this backup.
The copy id of this backup.
Wither this backup was encrupted.
Backup::Omni::Base Backup::Omni::Class Backup::Omni::Utils Backup::Omni::Constants Backup::Omni::Exception Backup::Omni::Restore::Filesystem::Single Backup::Omni::Session::Messages Backup::Omni::Session::Monitor Backup::Omni::Session::Results
Kevin L. Esteb, <kesteb@wsipc.org>
Copyright (C) 2013 by WSIPC
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Backup::Omni, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Backup::Omni
CPAN shell
perl -MCPAN -e shell install Backup::Omni
For more information on module installation, please visit the detailed CPAN module installation guide.