Home » Microsoft » 70-667 » Which command should you run to restore the farm configuration?
You configure a SharePoint Server 2010 Service Pack 1 (SP1) server farm. You need to perform backup and restore of a site collection and its content database by using Windows PowerShell.
Which command should you run to restore the farm configuration?
A. Backup-SPFarm -Directory \FileServer_NameSharePointBackupFolder -Item "FarmMicrosoft SharePoint Foundation Web ApplicationAdventureWorks" -BackupMethod Full
B. Restore-SPFarm -Directory \FileServer_Namesharesite_name.bak -RestoreMethod Overwrite Item "FarmMicrosoft SharePoint Foundation Web ApplicationAdventureWorks"
C. Backup-SPFarm -Directory \FileServer_NameSharePointBackupFolder -BackupMethod Full
D. Restore-SPFarm -Directory \FileServer_Namesharesite_name.bak -RestoreMethod Overwrite Item WSS_AdventureWorks
E. Backup-SPFarm -Directory \FileServer_NameSharePointBackupFolder -BackupMethod Full Item WSS_AdventureWorks
F. Restore-SPSite http://localhost -Path \FileServer_NameSharePointBackupFolder SiteBackup. bak -Force
G. Backup-SPSite http://localhost -Path \FileServer_NameSharePointBackupFolderSiteBackup. bak
H. Restore-SPFarm -Directory \FileServer_Namesharesite_name.bak -RestoreMethod Overwrite -ConfigurationOnly
Correct Answer: H
Explanation/Reference:
http://technet.microsoft.com/en-us/library/ff607783.aspx : -ConfigurationOnly (Specifies settings only (no data) will be restored from the backup package and applied to objects on the destination farm.)
Use Windows PowerShell to restore a farm’s configuration in SharePoint
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 ConfigurationOnly parameter. To view the progress of the operation, use the Verbose parameter.
For more information, see Restore-SPFarm.
Note:
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.
http://technet.microsoft.com/en-us/library/ee428326.aspx#section1