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

Creates a backup selection object for Microsoft Exchange 2003 or 2007 databases.

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

Creates a backup selection object for Microsoft Exchange 2003 or 2007 databases.

Parameters

-StorageGroupName <String>

Specifies the name of a storage group. Specify '*' to indicate all available storage groups.


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


-DatabaseName <String>

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


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


-Exclude <SwitchParameter>

Excludes the storage group or database selection specified with the -StorageGroupName parameter and/or -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-BEExchangeStorageGroupDatabaseSelection.

Return Value
BackupExec.Management.CLI.BEExchangeStorageGroupDatabaseSelection

New-BEExchangeStorageGroupDatabaseSelection returns an BEExchangeStorageGroupDatabaseSelection object

Examples

Example 1

C:\PS> $x = New-BEExchangeStorageGroupDatabaseSelection -StorageGroupName "StorageGroup1" -DatabaseName "Database1"
C:\PS> Get-BEAgentServer -Local | New-BEBackupDefinition -BackupJobDefault BackupToDisk -ExchangeStorageGroupDatabaseSelection $x | Save-BEBackupDefinition

These commands create a backup definition that backs up the Exchange database named "Database1" in a storage group named "StorageGroup1" for the local computer using the "BackupToDisk" job defaults.


Example 2
C:\PS> $x = "StorageGroup1" | New-BEExchangeStorageGroupDatabaseSelection -Database "Database1"
C:\PS> Get-BEAgentServer -Local | Submit-BEOnetimeBackupJob -ExchangeStorageGroupDatabaseSelection $x

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

Related Links

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