Share via


SPSiteCollection.Backup method

Creates a backup file for the site collection located at the specified URL.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub Backup ( _
    strSiteUrl As String, _
    strFilename As String, _
    bOverwrite As Boolean _
)
'Usage
Dim instance As SPSiteCollection
Dim strSiteUrl As String
Dim strFilename As String
Dim bOverwrite As Boolean

instance.Backup(strSiteUrl, strFilename, _
    bOverwrite)
public void Backup(
    string strSiteUrl,
    string strFilename,
    bool bOverwrite
)

Parameters

  • strSiteUrl
    Type: System.String

    A string that contains the URL of the site collection object for which to create a backup.

  • strFilename
    Type: System.String

    A string that contains the name of the backup file.

  • bOverwrite
    Type: System.Boolean

    true if any other backup file for the site collection object should be overwritten; otherwise, false.

See also

Reference

SPSiteCollection class

SPSiteCollection members

Microsoft.SharePoint.Administration namespace