New-OBRecoveryOption

Specifies the recovery options that will apply to all the recoverable items during recovery.

语法

Default (默认值)

New-OBRecoveryOption
    [[-DestinationPath] <String>]
    [[-OverwriteType] <String>]
    [-SkipRestoreSecurity]

说明

The New-OBRecoveryOption specifies the recovery options that will apply to all the recoverable items during recovery. These include the Destination Path, Overwrite flag (for use in case if the object already exists), and Security settings for the object

If no Recovery Option is specified, the following default options will be used during recovery.

  1. Restore to original ___location.
  2. Create copies in case of conflict.
  3. Restore ACLs of the files.

To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.

示例

EXAMPLE 1

New-OBRecoveryOption -DestinationPath C:\temp -OverwriteType Overwrite -SkipRestoreSecurity

This example creates a new recovery option.

参数

-DestinationPath

Specifies the ___location to recover. This parameter is optional.

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:2
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-OverwriteType

Specifies whether to overwrite the existing files at the destination path. The following three values are supported for this parameter - "CreateCopy", "Skip" and "Overwrite".

参数属性

类型:String
默认值:CreateCopy
支持通配符:False
不显示:False

参数集

(All)
Position:3
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-SkipRestoreSecurity

Specifies whether to restore the access control lists (ACLs) of the files being recovered or to allow them to inherit the default ACLs of the restore ___location.

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:4
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

输入

None

输出

Microsoft.Internal.CloudBackup.Commands.OBRecoveryOption