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

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

Syntax
New-BESharePointPortalSiteSelection [-PortalSite] [<String>] [-Exclude [<SwitchParameter>]] [<CommonParameters>]
Description

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

Parameters

-PortalSite <String>

Specifies the name of a portal site.


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


-Exclude <SwitchParameter>

Excludes the portal site selection specified with the -PortalSite 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-BESharePointPortalSiteSelection.

Return Value
BackupExec.Management.CLI.BESharePointPortalSiteSelection

New-BESharePointPortalSiteSelection returns an BESharePointPortalSiteSelection object.

Examples

Example 1

C:\PS> $x = New-BESharePointPortalSiteSelection -PortalSite "MyPortalSite"
C:\PS> Get-BEAgentServer -Local | New-BEBackupDefinition -BackupJobDefault BackupToDisk -SharePointPortalSiteSelection $x | Save-BEBackupDefinition

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


Example 2
C:\PS> $x = "MyPortalSite" | New-BESharePointPortalSiteSelection
C:\PS> Get-BEAgentServer -Local | Submit-BEOnetimeBackupJob -SharePointPortalSiteSelection $x

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

Related Links

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