|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NcSnapshotPolicy
NAME
Set-NcSnapshotPolicy
SYNOPSIS
Modify a snapshot scheduling policy.
SYNTAX
Set-NcSnapshotPolicy [-Name] <String> [-Enabled [<Boolean>]] [-Controller <N
cController[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Modify a snapshot scheduling policy.
PARAMETERS
-Name <String>
The name of the snapshot scheduling policy to modify.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Enabled [<Boolean>]
Status of the snapshot policy indicating whether the policy will be enab
led or disabled. If set to true, the policy will be enabled.
Required? false
Position? named
Default value true
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-WhatIf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
NetApp.Ontapi.Filer.C.Snapshot810.SnapshotPolicyInfo
NOTES
Category: snapshot
API: snapshot-policy-modify
Family: cluster
-------------- Example 1 --------------
C:\PS>Set-NcSnapshotPolicy weeklyBackup -Enabled $false
Disable the snapshot schedule policy 'weeklyBackup'.
Policy Enabled SnapshotPolicySchedules
------ ------- -----------------------
weeklyBackup False {weekly (26)}
RELATED LINKS
Get-NcSnapshotPolicy
Set-NcSnapshotPolicySchedule
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|