New-OBRecoveryOption
New-OBRecoveryOption
Specifies the recovery options that will apply to all the recoverable items during recovery.
Syntax
Parameter Set: Default
New-OBRecoveryOption [[-DestinationPath] <String> ] [[-OverwriteType] <String> {CreateCopy | Skip | Overwrite} ] [[-SkipRestoreSecurity]] [ <CommonParameters>]
Detailed 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.
Parameters
-DestinationPath<String>
Specifies the location to recover. This parameter is optional.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
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”.
Aliases |
none |
Required? |
false |
Position? |
3 |
Default Value |
none |
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.
Aliases |
none |
Required? |
false |
Position? |
4 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- None
Outputs
The output type is the type of the objects that the cmdlet emits.
- Microsoft.Internal.CloudBackup.Commands.OBRecoveryOption
Examples
EXAMPLE 1
This example creates a new recovery option.
PS C:\> New-OBRecoveryOption -DestinationPath C:\temp -OverwriteType Overwrite –SkipRestoreSecurity