I have Netapp powershell tool kit and trying to automate file restore operation using snapshot. I have found below
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.)
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
+ CategoryInfo : InvalidOperation: (10.181.209.22:NcController) [Restore-NcSnapshotFile], EONTAPI_
+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.RestoreNcSnapshotFile