Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Restore-NcCifsShadowCopyDirectory


NAME
Restore-NcCifsShadowCopyDirectory

SYNOPSIS
Request the storage system to restore a directory.

SYNTAX
Restore-NcCifsShadowCopyDirectory [-Volume] <String> [-SourceDirectory] <Str
ing> [-DestinationDirectory] <String> [-DirectoryOnly] [-Controller <NcContr
oller[]>] [<CommonParameters>]


DESCRIPTION
Request the storage system to restore a directory.


PARAMETERS
-Volume <String>
The name of the volume where the source and destination directories resi
de.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-SourceDirectory <String>
The path of the source directory. The path is in UTF8 and uses forward s
lash as directory separator. The path is relative to the root of the vol
ume.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-DestinationDirectory <String>
The path of the destination directory. The path is in UTF8 and uses forw
ard slash as directory separator. The path is relative to the root of th
e volume.

Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-DirectoryOnly
When specified, only the directory and no content will be restored, othe
rwise all content will be restored.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES


Category: cifs
API: cifs-shadowcopy-restore-dir
Family: cluster,vserver


RELATED LINKS







 Data ONTAP® PowerShell Toolkit