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

Creates a backup selection object for Microsoft SharePoint 2007 and 2010 service applications.

Syntax
New-BESharePointServiceApplicationSelection [[-ApplicationName] [<String>]] [-Exclude [<SwitchParameter>]] [<CommonParameters>]
Description

Creates a backup selection object for Microsoft SharePoint 2007 and 2010 service applications.

Parameters

-ApplicationName <String>

Specifies the name of a service application. Specify '*' to indicate all available service applications.


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


-Exclude <SwitchParameter>

Excludes the application selection specified with the -ApplicationName 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-BESharePointServiceApplicationSelection.

Return Value
BackupExec.Management.CLI.BESharePointServiceApplicationSelection

New-BESharePointServiceApplicationSelection returns an BESharePointServiceApplicationSelection object.

Examples

Example 1

C:\PS> $x = New-BESharePointServiceApplicationSelection -ApplicationName "SharePointApp1"
C:\PS> Get-BEAgentServer -Local | New-BEBackupDefinition -BackupJobDefault BackupToDisk -SharePointServiceApplicationSelection $x | Save-BEBackupDefinition

These commands create a backup definition that backs up the service application named "SharePointApp1" for the local computer using the "BackupToDisk" job defaults.


Example 2
C:\PS> $x ="SharePointApp1"|New-BESharePointServiceApplicationSelection
C:\PS> Get-BEAgentServer -Local | Submit-BEOnetimeBackupJob -SharePointServiceApplicationSelection $x

These commands submit a one-time backup job that backs up the service application named "SharePointApp1" on the local computer.

Related Links

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