Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

netapp::snapshot(3pm) [debian man page]

NetApp::Snapshot(3pm)					User Contributed Perl Documentation				     NetApp::Snapshot(3pm)

NAME
NetApp::Snapshot -- OO class for creating and managing snapshots SYNOPSIS
use NetApp::Filer; use NetApp::Snapshot; my $filer = NetApp::Filer->new( .... ); DESCRIPTION
This class encapsulates a single NetApp snapshot, and provides methods for querying information about the snapshot, as well as methods for managing it. METHODS
get_parent Returns the NetApp::Aggregate or NetApp::Volume object for the aggregate or volume for which object is a snapshot. get_name Returns a string representing the name of the snapshot. get_date Returns the date the snapshot was created. get_used Returns the percentage of space used by snapshot. get_total Returns the percentage of total space used by the snapshot. get_snapshot_deltas Returns an array of NetApp::Snapshot:Delta objects, each representing a single delta for this snapshot. get_reclaimable Returns the amount of reclaimable space, if the snapshot is deleted. Note that experimentally, this command has a lot of failure scenarios, most of which are reasonable (there are a lot of cases where you can't query this data). Therefore, unlike most of the methods in this API, it doesn't raise a fatal exception if it can't query the information, it simply generates warnings. rename( $newname ) Renames the snapshot to the specified name. restore( %args ) This method is an interface to the "snap restore" command. The argument syntax is: $snapshot->restore( type => 'vol' | 'file', # Defaults to vol from_path => $from_path, to_path => $to_path, ); The 'type' argument maps to the -t CLI argument, and the 'to_path' argument maps to the -r CLI argument. Refer to the na_snap(1) man page, and the "snap restore" documentation for further information. perl v5.14.2 2008-11-26 NetApp::Snapshot(3pm)

Check Out this Related Man Page

NetApp::Qtree(3pm)					User Contributed Perl Documentation					NetApp::Qtree(3pm)

NAME
NetApp::Qtree -- OO class for creating and managing qtrees SYNOPSIS
use NetApp::Filer; use NetApp::Qtree; my $filer = NetApp::Filer->new( .... ); # Create a tree, with all options in one call my $qtree = $filer->create_qtree( name => "/vol/vol1/qtreename", oplocks => 1, mode => 0755, security => 'unix', ); # Alternately, you can create it, and then change things my $qtree = $filer->create_qtree( name => "/vol/vol1/qtreename", mode => 0755, ); # The mode must be set when created $qtree->set_oplock(1); $qtree->set_security('unix'); DESCRIPTION
This class encapsulates a single NetApp qtree, and provides methods for querying information about the qtree, as well as methods for managing it. METHODS
set_security( $security ) This method method takes a single argument, which is the security value to set on the qtree. It must have one of the following values: unix ntfs mixed get_security Returns a string containing the current security setting of the qtree. set_oplocks( $boolean ) This method takes a boolean argument, and sets the oplocks attribute of the qtree to "enabled" if the value is true, and "disabled" if the value is false. get_oplocks Returns true is the oplocks are set to "enabled", false if they are set to "disabled". get_status Returns the status value for the qtree. It waill have the values such as: normal snapmirrored get_id Returns the qtree id. get_vfiler Returns the vfiler which owns the qtree. If vfilers are not licensed on the filer, this method will simply return a false value. perl v5.14.2 2008-11-26 NetApp::Qtree(3pm)
Man Page