New-OBRecoveryOption
Specifies the recovery options that will apply to all the recoverable items during recovery.
Syntax
Default (Default)
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.
- Restore to original ___location.
- Create copies in case of conflict.
- 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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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".
Parameter properties
Type: | String |
Default value: | CreateCopy |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 3 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 4 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |