Restore a farm configuration (SharePoint Foundation 2010)
Published: May 12, 2010
This topic describes how to a restore the configuration of a farm.
In previous versions of Microsoft SharePoint Foundation 2010, you could not restore the configuration database and, therefore, you could not restore the configuration of a farm. In this version of SharePoint Foundation 2010, you do not have to restore the configuration database because you can restore the farm configuration directly.
Procedures in this task:
Farm-level configuration recovery is performed only after a failure that involves the configuration database but does not involve other farm data, such as a content database or Web application. If restoring the farm configuration does not solve the problems, you must restore the complete farm. For more information about restoring the complete farm, see Restore a farm (SharePoint Foundation 2010). You can restore the configuration from a farm backup that used either the Backup content and configuration settings option or the Backup only configuration settings option.
Use Windows PowerShell to restore a farm’s configuration
You can use Windows PowerShell to restore a farm’s configuration.
To restore a farm’s configuration by using Windows PowerShell
Verify that you meet the following minimum requirements: See Add-SPShellAdmin.
On the Start menu, click All Programs.
Click SharePoint 2010 Products.
Click SharePoint 2010 Management Shell.
From the Windows PowerShell command prompt (that is, PS C:\>), type the following command and press ENTER:
Restore-SPFarm -Directory <RestoreShare> -RestoreMethod Overwrite -ConfigurationOnly
You must use the
ConfigurationOnlyparameter. To view the progress of the operation, use the
For more information, see Restore-SPFarm.
We recommend that you use Windows PowerShell when performing command-line administrative tasks. The Stsadm command-line tool has been deprecated, but is included to support compatibility with previous product versions.
Use Central Administration to restore a farm’s configuration
You can use Central Administration to restore a farm’s configuration.
To restore a farm's configuration by using Central Administration
Ensure that you are a member of the Farm Administrators SharePoint group on the computer that is running Central Administration and a member of the sysadmin fixed server role on the database server where each database is stored.
In Central Administration, on the Home page, in the Backup and Restore section, click Restore from a backup.
On the Restore from Backup — Step 1 of 3: Select Backup to Restore page, select the backup job that contains the farm backup from the list of backups, and then click Next.
You can view additional information about the backups by expanding the row that contains the backup.
If the correct backup job does not appear, in the Backup Directory Location text box, enter the UNC path of the correct backup folder, and then click Refresh.
On the Restore from Backup — Step 2 of 3: Select Component to Restore page, select the check box that is next to the farm, and then click Next.
On the Restore from Backup — Step 3 of 3: Select Restore Options page, in the Restore Component section, ensure that "Farm" appears in the Restore the following content list.
In the Restore Only Configuration Settings section, ensure that the Restore content and configuration settings option is selected.
In the Restore Options section, select the Type of Restore option. Use the Same configuration setting. A dialog box will appear that asks you to confirm the operation. Click OK.
If the Restore Only Configuration Settings section does not appear, then the backup that you selected is a configuration-only backup.
Click Start Restore.
You can view the general status of all recovery jobs at the top of the Backup and Restore Status page in the Readiness section. You can view the status of the current recovery job in the lower part of the page in the Restore section. The status page updates every 30 seconds automatically. You can manually update the status details by clicking Refresh. Backup and recovery are Timer service jobs. Therefore, it may take several seconds for the recovery to start.
If you receive any errors, you can review them in the Failure Message column of the Backup and Restore Job Status page. You can also find more details in the Sprestore.log file at the UNC path that you specified in step 2.
Use SQL Server to restore a farm's configuration
You cannot restore a farm's configuration by using SQL Server tools.