Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can look into this website.
Jeremy had developed some workflows.
http://www.virtpirate.com/tag/wfa/
Regards
Abhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
