Set-DatasourceProtectionOption

Set-DatasourceProtectionOption

Sets the protection options for the specified datasource.

Syntax

Set-DatasourceProtectionOption [-AllowClientUserToAddFileSpecs] <Boolean> [-ProtectionGroup] <ProtectionGroup> [-Confirm] [-PassThru <SwitchParameter>] [<CommonParameters>]


Set-DatasourceProtectionOption [[-TopologyType] <ProtectionTopologyType>] -ExchangeOptions [-ProtectionGroup] <ProtectionGroup> [-BackupType <BackupType>] [-Confirm] [-Datasource <Datasource>] [-EseutilCheckType <EseutilTypeType>] [-PassThru <SwitchParameter>] [-PreferredPhysicalNode <String>] [-RunEseUtilConsistencyCheck] [<CommonParameters>]


Set-DatasourceProtectionOption [-FileType] <String> [-ProtectionGroup] <ProtectionGroup> -Remove [-Confirm] [-PassThru <SwitchParameter>] [<CommonParameters>]


Set-DatasourceProtectionOption [-ClientFileSpecOperation] <ClientFileSpecOperationType> [-Path] <String> [-ProtectionGroup] <ProtectionGroup> [-Confirm] [-PassThru <SwitchParameter>] [<CommonParameters>]


Set-DatasourceProtectionOption [-FileType] <String> -Add [-ProtectionGroup] <ProtectionGroup> [-Confirm] [-PassThru <SwitchParameter>] [<CommonParameters>]


Set-DatasourceProtectionOption [-AutoConsistencyCheck] <Boolean> [-ProtectionGroup] <ProtectionGroup> [-Confirm] [-PassThru <SwitchParameter>] [<CommonParameters>]

Detailed Description

The Set-DatasourceProtectionOption cmdlet sets the protection options for the specified datasource.

Using the -Remove parameter allows you to exclude all files of a particular type from protection. For e.g., all mp3 files.

Using the -Add parameter allows you to remove any exclusions set using the -Remove parameter.

Using the -ExchangeOptions parameter allows you to set the protection options for an Exchange data source.

Parameters

-Path

The path to a folder.
With Set-DatasourceProtectionOption, this indicates the path to add or remove from the include or exclude list.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

1

-ClientFileSpecOperation

Indicates which folders to add or remove from the include or exclude list. This parameter can take the following values:
- AddInclude
- RemoveInclude
- AddExclude
- RemoveExclude

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

2

-AutoConsistencyCheck

Indicates whether consistency check must be automatically run on the data sources of the protection group if the replica becomes inconsistent.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

1

-AllowClientUserToAddFileSpecs

Indicates whether the end user can specify which folders to protect.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

1

-FileType

Indicates the file type to include or exclude in a protection.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

1

-TopologyType

Applies to Microsoft Exchange Server 2007 cluster continuous replication only. The available topologies are Active, Passive, and Active if Passive Not Available.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

2

-Add

Adds a file exclusion on a protection group.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-ExchangeOptions

Indicates that the options that follow affect only Microsoft Exchange data sources.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-ProtectionGroup

The name of a protection group.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

0

-Remove

Indicates that a remove operation will be performed.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-BackupType

Indicates the type of backup. The valid values are CopyBackup and FullBackup.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-Confirm

Asks the user to confirm the action.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-Datasource

A Windows file system share or volume, Microsoft SQL Server database, Microsoft Exchange storage group, Microsoft SharePoint farm, Microsoft Virtual Machine, DPM database, or system state that is a member of a protection group.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-EseutilCheckType

Indicates how Eseutil should run. This parameter can take the following values: DontRun, RunOnLogs and RunOnLogsAndDB.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-PassThru

The -PassThru parameter can be used with many commands in DPM to return a related object in cases where there is no default output. Using the PassThru parameter allows such cmdlets to be part of a pipeline.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-PreferredPhysicalNode

Applies to Microsoft Exchange Server 2007 cluster continuous replication only. If Preferred Server topology is selected, the server to be protected must be specified.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-RunEseUtilConsistencyCheck

Indicates that the EseUtil consistency check should be run. This is applicable only for Microsoft Exchange data sources.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CommonParameter

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

Notes

  • For more information, type "Get-Help Set-DatasourceProtectionOption -detailed".
    For technical information, type "Get-Help Set-DatasourceProtectionOption -full".

    Additionally, any updated information about the cmdlet will be available at http://go.microsoft.com/fwlink/?LinkId=95130.

Examples