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

Creates a backup selection object for Microsoft SharePoint 2003 service sites.

Syntax
New-BESharePointServiceSiteSelection [-ServiceSite] [<String>] [-Exclude [<SwitchParameter>]] [<CommonParameters>]
Description

Creates a backup selection object for Microsoft SharePoint 2003 service sites.

Parameters

-ServiceSite <String>

Specifies the name of a service site.


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


-Exclude <SwitchParameter>

Excludes the service site selection specified with the -ServiceSite 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-BESharePointServiceSiteSelection.

Return Value
BackupExec.Management.CLI.BESharePointServiceSiteSelection

New-BESharePointServiceSiteSelection returns an BESharePointServiceSiteSelection object.

Examples

Example 1

C:\PS> $x = New-BESharePointServiceSiteSelection -ServiceSite "Site1"
C:\PS> Get-BEAgentServer -Local | New-BEBackupDefinition -BackupJobDefault BackupToDisk -BESharePointServiceSiteSelection $x | Save-BEBackupDefinition

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


Example 2
C:\PS> $x = "Site1" | New-BESharePointServiceSiteSelection
C:\PS> Get-BEAgentServer -Local | Submit-BEOnetimeBackupJob -BESharePointServiceSiteSelection $x

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

Related Links

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