Back up of Site Collection


Back up of Site Collection:

We can take back up of site collection by using PowerShell as well as we can take back up from the SharePoint Central Administration also.

From SharePoint Central Administration:

Open SharePoint 2013 Central Administration, then on the home page, in the Backup and Restore section, click Perform a site collection backup.

On the Site collection backup page, select the site collection from the Site Collection list.

Then give the file path in the Filename box.

Then click on Start Backup.

From PowerShell Command:

Below is the PowerShell command to backup a site collection:
Backup-SPSite -Identity <SiteCollectionURL> -Path <Path of the file> [-Force]

Restore Site Collection in SharePoint 2013:

We can restore a Site collection by using PowerShell only in SharePoint 2013.

Below is the PowerShell command to restore a site collection:
Restore-SPSite -Identity <SiteCollectionURL> -Path <Backup file> [-DatabaseServer <DatabaseServerName>] [-DatabaseName <ContentDatabaseName>] [-HostHeader <Host header>] [-Force] [-GradualDelete] [-Verbose]

If you want to restore the site collection to a specific content database, use the DatabaseServer and DatabaseName parameters to specify the content database. If you do not specify a content database, the site collection will be restored to a content database chosen by SharePoint 2013.

If you want to overwrite an existing site collection, use the Force parameter.

Comments

Post a Comment

Popular posts from this blog

SharePoint 2013 Keyword Query (KQL) Content Class Property Restrictions

Filtering the Sharepoint List Taxonomy Column using Rest API

SharePoint CSOM to Create Folders and Sub Folders based on Excel Data