Restore VM Using NetApp Snapshot (SnapRestore)
2015-05-11 05:17 AM
We want to automate a snap restore command for restoring a VM from one of the nightly snapshots we take. Assuming this can be done with Powershell, just wondering if someone knows the best way to script this.
Obviously happy to use WFA to do this.
2 REPLIES 2
Re: Restore VM Using NetApp Snapshot (SnapRestore)
2015-05-14 01:48 PM
Powershell cmdlets are available for this. For cDOT Restore-NcSnapshotVolume Restore-NcSnapshotFile and for 7Mode Restore-NaSnapshotVolume Restore-NaSnapshotFile can be used to get this done. You can create a new WFA command to execute it.
PS C:\Users\sinhaa> Restore-NcSnapshotVolume -Volume sinhaa_vol1011 -SnapName "hourly.2015-05-14_1805" -VserverContext SivaVS1 -Confirm:0
Name State TotalSize Used Available Dedupe Aggregate Vserver
---- ----- --------- ---- --------- ------ --------- -------
sinhaa_vol1011 online 100.0 MB 5% 94.9 MB False Test_aggregate SivaVS1
Is this okay, or you would need the whole WFA command code?
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.