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 contentdatabase
A.
Restore-SPFarm -Directory \\FileServer_Name\share\site_name.bak -RestoreMethod Overwrite Item “Farm
\Microsoft SharePoint Foundation Web Application\AdventureWorks”
B.
Backup-SPFarm -Directory \\FileServer_Name\SharePointBackupFolder -BackupMethod Full
C.
Backup-SPFarm -Directory \\FileServer_Name\SharePointBackupFolder -BackupMethod Full Item
WSS_AdventureWorks
D.
Restore-SPFarm -Directory \\FileServer_Name\share\site_name.bak -RestoreMethod Overwrite Item
WSS_AdventureWorks
E.
Restore-SPSite http://localhost -Path \\FileServer_Name\SharePointBackupFolder SiteBackup. bak -Force
F.
Restore-SPFarm -Directory \\FileServer_Name\share\site_name.bak -RestoreMethod Overwrite -ConfigurationOnly
G.
Backup-SPFarm -Directory \\FileServer_Name\SharePointBackupFolder -Item “Farm\Microsoft SharePoint
Foundation Web Application\AdventureWorks” -BackupMethod Full
H.
Backup-SPSite http://localhost -Path \\FileServer_Name\SharePointBackupFolder\SiteBackup. bak
Explanation:
Use Windows PowerShell to restore a SharePoint content database
You can use Windows PowerShell to restore a contentdatabase.
To restore a content database by using Windows PowerShell
Verify that you meet the following minimum requirements: See Add-SPShellAdmin.
On the Start menu, click All Programs.
Click Microsoft SharePoint 2013 Products.
Click SharePoint 2013 Management Shell.
At the Windows PowerShell command prompt (that is, PS C:\>), type the following command, and then press
ENTER:
Restore-SPFarm -Directory <Backup folder name> -RestoreMethod Overwrite -Item <Content database
name> [-BackupId <GUID>] [-Verbose]
Note:
If you are not logged on as the Farm account, you are prompted for the Farm accounts credentials.
If you do not use the BackupId parameter, the most recent backup will be used. To view a list of the backups,
including their Backup IDs, type the following command, and then press ENTER:
Get-SPBackupHistory -Directory <Backup folder>
http://technet.microsoft.com/en-us/library/ff607783.aspx : -RestoreMethod -Overwrite; Restores contentand
settings to their original locations and is intended to be used when restoring to the same farm it wasbacked up
from. If the Overwrite parameter is used, a confirmation prompt is displayed. If you want the confirmation
prompt suppressed, use the Force parameter.