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

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

Syntax
New-BESharePointWebApplicationSelection [[-WebApplicationName] [<String>]] [-Exclude [<SwitchParameter>]] [<CommonParameters>]
Description

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

Parameters

-WebApplicationName <String>

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


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


-Exclude <SwitchParameter>

Excludes the web application selection specified with the -WebApplicationName 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-BESharePointWebApplicationSelection.

Return Value
BackupExec.Management.CLI.BESharePointWebApplicationSelection

New-BESharePointWebApplicationSelection returns an BESharePointWebApplicationSelection object.

Examples

Example 1

C:\PS> $x = New-BESharePointWebApplicationSelection -WebApplicationName "WEB_APP1"
C:\PS> Get-BEAgentServer -Local | New-BEBackupDefinition -BackupJobDefault BackupToDisk -SharePointWebApplicationSelection $x | Save-BEBackupDefinition

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


Example 2
C:\PS> $x = "WEB_APP1" | New-BESharePointWebApplicationSelection
C:\PS> Get-BEAgentServer -Local | Submit-BEOnetimeBackupJob -SharePointWebApplicationSelection $x

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

Related Links

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