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
Hello Team,
I have Netapp powershell tool kit and trying to automate file restore operation using snapshot. I have found below
Restore-NcCifsShadowCopyDirectory
Restore-NcSnapshotFile
However, I am not bale to successfully restore the file. For example :
PS C:> Restore-NcSnapshotFile
cmdlet Restore-NcSnapshotFile at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Path: /volume/text.txt
SnapName: weekly.2020-06-21_0015
Restore file from snapshot
Are you sure you want to restore file /volume/test.txt from snapshot weekly.2020-06-21_0015?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
Restore-NcSnapshotFile : Failed to restore file from Snapshot copy weekly.2020-06-21_0015 for volume
"volc1svm1_root" on Vserver "vserverc1svm1". Reason: Inappropriate file type or format.
At line:1 char:1
+ Restore-NcSnapshotFile
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (10.181.209.22:NcController) [Restore-NcSnapshotFile], EONTAPI_
+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.RestoreNcSnapshotFile
Solved! See The Solution
1 ACCEPTED SOLUTION
ttran has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you've already connected to the vserver using connect-nccontroller, try using the restore-ncsnapshotfile command like this:
restore-ncsnapshotfile /vol/{volume_name}/test.txt weekly.2020-06-21_0015
let me know if it works out.
-Adam
1 REPLY 1
ttran has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you've already connected to the vserver using connect-nccontroller, try using the restore-ncsnapshotfile command like this:
restore-ncsnapshotfile /vol/{volume_name}/test.txt weekly.2020-06-21_0015
let me know if it works out.
-Adam
