New-OBRecoveryOption

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

Syntax

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

Description

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.

ps_mob_user_group_remark

Examples

EXAMPLE 1

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

This example creates a new recovery option.

Optional Parameters

-DestinationPath

Specifies the location to recover. This parameter is optional.

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters: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".

Type:String
Position:3
Default value:CreateCopy
Accept pipeline input:False
Accept wildcard characters: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.

Type:SwitchParameter
Position:4
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBRecoveryOption