You configure a SharePoint Server 2013 Service Pack1 (SP1) server farm. You need to
perform backup and restore of a site collection andits content database by using Windows
PowerShell.
Which command should you run to restore the farm configuration?
A.
Backup-SPFarm -Directory \\FileServer_Name\SharePointBackupFolder -Item “Farm\Microsoft SharePoint
Foundation Web Application\AdventureWorks” -BackupMethod Full
B.
Restore-SPFarm -Directory \\FileServer_Name\share\site_name.bak -RestoreMethod Overwrite Item “Farm
\Microsoft SharePoint Foundation Web Application\AdventureWorks”
C.
Backup-SPFarm -Directory \\FileServer_Name\SharePointBackupFolder -BackupMethod Full
D.
Restore-SPFarm -Directory \\FileServer_Name\share\site_name.bak -RestoreMethod Overwrite Item
WSS_AdventureWorks
E.
Backup-SPFarm -Directory \\FileServer_Name\SharePointBackupFolder -BackupMethod Full Item
WSS_AdventureWorks
F.
Restore-SPSite http://localhost -Path \\FileServer_Name\SharePointBackupFolder SiteBackup. bak -Force
G.
Backup-SPSite http://localhost -Path \\FileServer_Name\SharePointBackupFolder\SiteBackup. bak
H.
Restore-SPFarm -Directory \\FileServer_Name\share\site_name.bak -RestoreMethod Overwrite -ConfigurationOnly
Explanation:
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 farms configuration in SharePoint
You can use Windows PowerShell to restore a farms configuration.
To restore a farms 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 2013 Products.
Click SharePoint 2013 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