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.

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

Examples

EXAMPLE 1

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

This example creates a new recovery option.

Parameters

-DestinationPath

Specifies the location to recover. This parameter is optional.

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

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBRecoveryOption