Backup Exec Management Command Line Interface Help
New-BEExchangeDatabaseSelection Cmdlet
Synopsis

Creates a backup selection object for Exchange 2010 databases.

Syntax
New-BEExchangeDatabaseSelection [[-DatabaseName] [<String>]] [-Exclude [<SwitchParameter>]] [<CommonParameters>]
Description

Creates a backup selection object for Exchange 2010 databases.

Parameters

-DatabaseName <String>

Specifies the name of a database. Specify '*' to indicate all available databases.


Required false
Position 0
Accepts pipeline input true (ByValue ByPropertyName)
Accepts wildcard characters false


-Exclude <SwitchParameter>

Excludes the database selection specified with the -DatabaseName parameter.


Required false
Position Named
Accepts pipeline input false
Accepts wildcard characters false


<CommonParameters>

For more information about common parameters, type "Get-Help about_commonparameters".

Input Type
System.String

You can pipe a string object to New-BEExchangeDatabaseSelection.

Return Value
BackupExec.Management.CLI.BEExchangeDatabaseSelection

New-BEExchangeDatabaseSelection returns an BEExchangeDatabaseSelection object.

Examples

Example 1

C:\PS> $x = New-BEExchangeDatabaseSelection -DatabaseName "Database1"
C:\PS> Get-BEAgentServer -Local | New-BEBackupDefinition -BackupJobDefault BackupToDisk -ExchangeDatabaseSelection $x | Save-BEBackupDefinition

These commands create a backup definition that backs up the Exchange database named "Database1" on the local computer using the "BackupToDisk" job defaults.


Example 2
C:\PS> $x = "Database1" | New-BEExchangeDatabaseSelection
C:\PS> Get-BEAgentServer -Local | Submit-BEOnetimeBackupJob -ExchangeDatabaseSelection $x

These commands submit a one-time backup job that backs up the Exchange database named "Database1" on the local computer.

Related Links

Get-BEAgentServer
New-BEBackupDefinition
Save-BEBackupDefinition
Submit-BEOnetimeBackupJob