This is an archive version of the document. To get the most up-to-date information, see the current version.

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>]

Related Commands

Get-NetAppVolume

Detailed Description

This cmdlet creates a snapshot of the selected NetApp volume.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Volume

Specifies the storage volume for which you want to take snapshot.

True

Named

True (by Value
FromPipeline, ValueFromPipeline
ByPropertyName)

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 command creates a snapshot of the "Vol 01" volume. The snapshot is named "vol_SS_01".

  1. Run Get-NetAppHost to get the host where the volume is located. Save the result to the $apphost variable.
  2. Run Get-NetAppVolume with the $apphost variable to get the volume. Pipe it down to Add-NetAppSnapshot.

PS C:\PS> $apphost = Get-NetAppHost -Name "NetApp Store"

PS C:\PS> Get-NetAppVolume -Host $apphost -Name "Vol 01" | Add-NetAppSnapshot -Name "vol_SS_01"