Add-NetAppSnapshot
Short Description
Creates NetApp storage snapshots.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Add-NetAppSnapshot -Volume <CSanVolume> [-Name <String>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>] |
Detailed Description
This cmdlet creates a snapshot of a selected NetApp storage volume.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Volume | Specifies the storage volume for which you want to take snapshot. | True | Named | True (ByValue, | False |
Name | Specifies the name you want to assign to the snapshot. | False | Named | False | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This example shows how to create a snapshot of the "Vol 01" volume.
You will need to perform the following steps:
- Run Get-NetAppHost to get the host where the volume is located. Save the result to the $apphost variable.
- Run Get-NetAppVolume with the $apphost variable to get the volume. Pipe it down to Add-NetAppSnapshot.
$apphost = Get-NetAppHost -Name "NetApp Store" Get-NetAppVolume -Host $apphost -Name "Vol 01" | Add-NetAppSnapshot -Name "vol_SS_01" |
Related Commands