Backup and Restore Site collection in SharePoint 2016/2013/2010/2007

This SharePoint tutorial, we will discuss how to take backup and restore a site collection using PowerShell in SharePoint 2016/2013/2010/2007. We will also see how to backup & restore a site collection using SharePoint central administration.

We will also see how to create a backup and restore a SharePoint 2013 subsite using PowerShell using the Export and Import option.

We will also see how to solve SharePoint backup and restore error, We apologize for any inconvenience but we have made the site read-only while we are making some improvements and also another error comes as Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored.

Now, we will see how to take a backup of SharePoint 2013/2016 site collection using PowerShell. We can take the backup of the site collection using PowerShell and also from SharePoint 2013/2016 Central Administration.

Backup Restore SharePoint 2013/2016 site collection using PowerShell

Now we will see how to take backup and restore SharePoint site collection using PowerShell.

Backup SharePoint site collection using PowerShell

To take the backup of a SharePoint 2013/2016 site collection use the below PowerShell cmdlet. You can run using PowerShell or Windows PowerShell ISE.

Backup-SPSite -Identity http://win-pfcp2dgt8di/sites/EnjoySharePoint/ -Path E:\MySiteCollection.bak

Here http://win-pfcp2dgt8di/sites/EnjoySharePoint/ is the site collection URL.

And E:\MySiteCollection.bak is the path of the backup file.

Backup SharePoint site collection using PowerShell

Backup SharePoint 2013/2016 site collection using the central administration

To take the backup through SharePoint 2013 Central Administration. Open SharePoint 2013 central administration, then from Backup and Restore section click on “Perform a site collection backup”.

In the next page, select the SharePoint Site Collection URL and then give the file name with the path in the File Location box. Then click on Start Backup.

Backup SharePoint 2013 site collection using the central administration

Restore SharePoint 2013/2016 site collection using PowerShell

We can only restore a SharePoint 2013/2016 site collection by using PowerShell only.

Open SharePoint 2013 Management Shell and execute the below command:

Restore-SPSite -Identity <SiteCollectionURL> -Path <Backup file> [-DatabaseServer <DatabaseServerName>] [-DatabaseName <ContentDatabaseName>]

If you want to restore the SharePoint 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.

Example:

Restore-SPSite -Identity http://win-pfcp2dgt8di/sites/MyNewSiteColURL/ -Path E:\MySiteCollection.bak

Example-1:

Restore-SPSite -Identity http://win-pfcp2dgt8di/sites/MyNewSiteColURL/ -Path E:\MySiteCollection.bak -DatabaseServer WIN-PFCP2DGT8DI -DatabaseName WSS_Content_New

Export Import SharePoint 2013/2016 Sub Site using PowerShell

Now, we will see how to export and import a SharePoint 2013 subsite using PowerShell. By using Backup and Restore you can backup and restore site collection not a subsite. We can use Export and Import command to export and import a particular SharePoint subsite or a list or document library.

Below is PowerShell command to take a backup of a subsite.

Add-PSSnapin "Microsoft.SharePoint.PowerShell"

Export-SPWeb http://win-pfcp2dgt8di/sites/EnjoySharePoint/MyTestSubSite/ -Path "E:\Bijaya\MyTestSubSite.cmp" -IncludeVersions All

Below is the PowerShell command to import a SharePoint 2016/2013 subsite.

Add-PSSnapin "Microsoft.SharePoint.PowerShell"

Import-SPWeb http://win-pfcp2dgt8di/sites/EnjoySharePoint/SPSubSite/ -Path "E:\Bijaya\MyTestSubSite.cmp" -UpdateVersions overwrite

This is how we can back up and restore a SharePoint 2013 site collection using PowerShell.

We apologize for any inconvenience but we have made the site read only while we are making some improvements

Now, we will see how to resolve one error which comes after taking a backup of a SharePoint site using PowerShell. If you are taking Backup using PowerShell and for some reason, if the backup abnormally terminated, then SharePoint will put the site into the Read-only mode. After this if you will try to browse the site using a browser then you will be able to see a message like below:

SharePoint 2013 backup error We apologize for any inconvenience but we've made the site read only while we are making some improvements

We apologize for any inconvenience, but we’ve made the site read-only while we’re making some improvements.

You can able to see the site collection read-only status in the SharePoint 2013 central administration. Open your SharePoint 2013 central administration, then under Application Management, click on “Configure quotas and locks” under Site Collections as shown in the fig below.

We apologize for any inconvenience but we have made the site read only

We apologize for any inconvenience but we ‘ve made the site read-only while we are making some improvements

In the Site Collection Quotas and Locks page you will be able to see “Read-only (blocks additions, updates and deletions)” under Lock Status for this site as shown in the fig below:

We apologize for any inconvenience but we have made the site read only sharepoint

Then we will run PowerShell command to remove the edit mode for a particular site collection.

Below PowerShell cmdlet, you can run to remove the edit mode for the particular site collection.

Add-PSSnapin "Microsoft.SharePoint.PowerShell"
$Admin = new-object Microsoft.SharePoint.Administration.SPSiteAdministration(‘https://SiteCollectionURL’)
$Admin.ClearMaintenanceMode()
SharePoint 2013 backup error We apologize for any inconvenience but we've made the site read only while we are making some improvements

After this, the Read-only mode will be removed from the SharePoint 2013 site.

Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored

This SharePoint tutorial explains how to resolve your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored error.

Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored to a server running the current version. The backup file should be restored to a server with version ‘14.0.0.7015’ or later.

The error is clearly a version miss-match error, you took the back up from a version and you are trying to restore in a different version.

Suppose you took a backup from an SP1 server and the server in which you are trying to install do not have SP1, then the error will come.

Remember even if you install a small patch and sometimes that will also create a problem.

Mainly check where your running server has SP1 installed, if yes then check the server from where you took the backup then if mismatch then tries to install SP1 and take a backup else you can try vice versa, But once SP1 has been installed it is very difficult to remove that.

This SharePoint tutorial helps how to solve your backup is from a different version of Microsoft sharepoint foundation and cannot be restored error.

Backup and restore SharePoint 2010 site collection

As a SharePoint user, it’s your responsibility to protect your data from any unexpected event or disaster. So always keep your disaster recovery plan ready. The first step in any disaster recovery plan is to have an up-to-date backup. This article will guide you on how you can backup and restore your SharePoint 2010 site collection site.

Backup site collection using Windows PowerShell

For better performance, it is recommended to first backup your data on the local computer and then moves it to a network folder. Following are the steps to backup SharePoint site collection:

Go to Start-> All Programs-> MS SharePoint 2010 Products.

Now click SharePoint 2010 Management Shell and type the following command on Windows PowerShell command prompt:

Backup -SPSite -Identity <Site collection name> -Path <backup file> [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose]
  • -Force: This parameter is used when you want to override an old backup with the same name.
  • -NoSiteLock: It helps in preventing SharePoint site collection from going in read-only mode when the backup is being taken.

Restore site collection using Windows PowerShell

Follow the below steps to restore site collection:

Go to Start-> All Programs-> MS SharePoint 2010 Products.

Now click SharePoint 2010 Management Shell and type the following command on Windows PowerShell command prompt:

Restore-SPSite -Identity <Site collection URL> -Path <Backup file> [-DatabaseServer <Database server name>] [-DatabaseName <Content database name>] [-HostHeader <Host header>] [-Force] [-GradualDelete] [-Verbose]
  • -Database Server: Content database server
  • -DatabaseName: Name of the content database

Backup SharePoint 2010 site collection using SharePoint 2010 Central Administration

Following are the steps to take a backup of a SharePoint 2010 site collection.

On the Home page of SharePoint 2010 Central Administration, go to Backup and Restore-> Perform a site collection backup.

Go to site collection backup page-> Site Collection List-> site collection.

Now in the Filename box give the path of your backup file and click Start Backup.

You cannot restore SharePoint site collection using Central Administration; only PowerShell is used for restoring data.

Backup SharePoint 2010 Site collection

Now, we will see only, how to take a backup of the Site collection in SharePoint 2010.

There are different ways that you can take a backup of a site collection in SharePoint 2010 like stsadm, PowerShell or through central administration. First, we will see how we can take backup through central administration.

First open your SharePoint 2010 central administration, go to Backup and Restore section and click on Perform a site collection backup. Then it will open the Site collection backup page like the below figure. There choose the site collection for which you want the backup and give the file name and path in the file location and click on Start Backup.

Backup SharePoint 2010 Site collection

Stsadm:
Here is the command to take a backup of the site collection:

STSADM -o backup -url <SiteCollectionURL> -filename <filename>
Example:
STSADM -o backup -url http://your-site-url -filename c:\backup\MySiteCollection.bak

PowerShell:
Here is the PowerShell command to take a backup of a site collection.

Backup-SPSite <SiteCollectionURL> -Path <filename>

Also, there are lots of parameters of this command.

Example:
Backup-SPSite http://your-site-url -path c:\backup\MySiteCollection.bak

SharePoint Site Backup and Restore using Microsoft SharePoint Office designer 2007

Do you want to move your SharePoint site to another server? If YES then you can do this with the help of MS SharePoint office designer 2007. You will have to perform three operations side by side to accomplish this task.

Backup SharePoint Site -> Create an empty designation site -> Restore SharePoint site in empty designation site

Backup SharePoint 2007 Site

You can perform the backup of your SharePoint site as follows:

  • First of all open SharePoint office designer 2007
  • Click on the file menu and select ‘open site’
  • Now enter the site address in the ‘site name’ dialog box and click on the open button
  • A dialog box will be open that will verify that ‘server is trying to connect with your site name’
  • Now enter the user name & password of the SharePoint site in the new dialog box
  • The same dialog box will be open as same as in step 4
  • Now your SharePoint site has been opened
  • Again go to the menu & click on the ‘site’ -> ‘administrator’ -> Backup Web Site
  • Click on the ‘Ok’ button to create a backup copy for your SharePoint site
  • If you want to include ‘subsite’ in the backup copy then click ‘include subtitles in archive’ option
  • Now choose the location where you want to save your SharePoint site backup copy.
  • Now you can check the backup copy from the location where you had placed it.

Create an Empty Designation Site:

You can create an empty designation site as follows:

  • First of all open SharePoint office designer 2007
  • Click on the file menu and select ‘New’
  • Give the location where you want to restore your SharePoint website
  • Click on the ‘OK’ button

Note: Database administration can’t restore a SharePoint site without creating an empty designation site. So let’s create an empty designation site to restore a SharePoint website.

Restore SharePoint 2007 Site

You can restore your SharePoint site as follows

  • With the destination site open, go to the menu & click on the ‘site’ -> ‘administrator’ -> Restore Web Site.
  • From the dialog box, browse and select the .cmp file that you want to restore
  • Click on the Open button.
  • From the restore web site dialog box, click on the OK to confirm the restoration.

To perform ‘backup & restore’ operation on the SharePoint site, you must have administrator permission for the site that you want to backup & restore.

Full Farm Backup of WSS 3.0

To back up WSS 3.0 through Central Administration, you must be logged in as a member of the Farm Administrator group.

First, you will need to open the Central Administration.

Click the Operations tab.

In the Backup and Restore section, click Perform a Backup.

To back up the entire farm, click the Farm checkbox. Once you do, all the checkboxes below Farm will be checked automatically, and the entire region will be highlighted in blue.

Click the Continue To Backup Options button.

In the Backup Content section, leave the default setting of Farm, and for the Type Of Backup setting, leave the Full radio button selected.

In the Backup File Location section, enter a file path where you can save your backup file. Whenever possible, it is a good idea to save these files on a server share outside the farm but where they’re accessible to the WSS 3.0 server.

Make certain that the account you are logged in with, the SQL service account (if you are backing up a standalone server, the server computer account instead), and the farm account all have at least read and write access to the backup location. Also make sure the account is a member of the db_owner database role on all the databases that need an upgrade, as this can cause your upgrade to fail.

Just below the Backup Location file path, you will see the Estimated Disk Space Required. If you have any concerns about whether you have enough disk space on your file share to save the backup files, you can compare the amount of free space you have to the Estimated Disk Space Required.

Click the OK button. The backup timer job will begin.

At the top of the page is a summary displaying information such as the phase, top component, number of warnings, and errors that have occurred. Below the summary you will find a listing of all the components being backed up and the progress of each. The information on the page is refreshed automatically every 30 seconds.

You will know when the backup job has completed when the summary at the top of the page shows the Phase as Completed and shows the Progress as Completed for each of the components in the list.

You may like following SharePoint tutorials:

This SharePoint tutorial, we learned how to take backup and restore a SharePoint 2013 site collection using PowerShell and from SharePoint central administration. We also saw, how to take a backup and restore a subsite using export and import option in SharePoint 2013/2016.

We also saw how to backup and restore a SharePoint 2010 site collection using PowerShell and from SharePoint 2010 central administration. We also see, how to SharePoint Site Backup and Restore using Microsoft SharePoint Office designer 2007 and how to take full farm backup of wss 3.0.

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

>