Active IQ Unified Manager Discussions

Restore VM Using NetApp Snapshot (SnapRestore)

mdaly1234

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

sinhaa

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.

 

Example:

 

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?

 

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

abhit

You can look into this website.

Jeremy had developed some workflows.

http://www.virtpirate.com/tag/wfa/

 

Regards

Abhi

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public