CatalystX::Usul::TapeBackup - Provides tape device methods
Describes v0.16.$Rev: 1 $
use CatalystX::Usul::TapeBackup; use Class::Usul; my $attr = { builder => Class::Usul->new, }; my $tape_obj = CatalystX::Usul::TapeBackup->new( $attr ); my $status_hash_ref = $tape_obj->get_status( {} ); my $ipc_response_obj = $tape_obj->start( $args, $paths ); my $tape_device = $tape_obj->eject( { device => $tape_device } );
Provides methods to perform tape backups using either dump or tar
dump
tar
Defines the following attributes
Directory path which defaults to /dev
String which defaults to st0
st0
String which defaults to /sbin/dump -aqu -b 128
/sbin/dump -aqu -b 128
Path which defaults to /etc/dumpdates
String which defaults to backup
backup
String which defaults to en_GB
en_GB
Integer which defaults to 43_200
43_200
String which defaults to mt -f
mt -f
String which defaults to n
n
String which defaults to null
String which defaults to st[0-9]+
st[0-9]+
String which defaults to tar -c -b 256
tar -c -b 256
$tape_device = $self->eject( { device => $tape_device } );
Ejects the tape in the selected drive
$status_hash_ref = $self->get_status( $args );
Returns a hash ref of information about the selected tape device
$display_message = $self->process( $options, $paths );
Called from a command line wrapper this method executes the actual dump or tar command
$ipc_response_obj = $self->start( $args, $paths );
Calls the external command line wrapper which performs the backup. Runs the command asynchronously so that it can return immediately to the action that called it
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Peter Flanigan, <Support at RoxSoft.co.uk>
<Support at RoxSoft.co.uk>
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.