New-OBRecoveryOption

New-OBRecoveryOption

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

语法

Parameter Set: Default
New-OBRecoveryOption [[-DestinationPath] <String> ] [[-OverwriteType] <String> {CreateCopy | Skip | Overwrite} ] [[-SkipRestoreSecurity]] [ <CommonParameters>]

详细说明

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.

参数

-DestinationPath<String>

Specifies the location to recover. This parameter is optional.

别名

none

是否必需?

false

在哪里?

2

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-OverwriteType<String>

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

别名

none

是否必需?

false

在哪里?

3

默认值

none

是否接受管道输入?

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.

别名

none

是否必需?

false

在哪里?

4

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持常见的参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 TechNet 上的 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

输入

输入类型是可以传送到 cmdlet 的对象的类型。

  • None

输出

输出类型是 cmdlet 发出的对象的类型。

  • Microsoft.Internal.CloudBackup.Commands.OBRecoveryOption

示例

EXAMPLE 1

This example creates a new recovery option.

PS C:\> New-OBRecoveryOption -DestinationPath C:\temp -OverwriteType Overwrite –SkipRestoreSecurity

相关主题

New-OBPagingContext

New-OBRecoverableItem

Start-OBRecovery