Export (0) Print
Expand All

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)
Available in Sandboxed Solutions: No

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.

Show:
© 2014 Microsoft