Which command should you run to restore the content database?

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 content database?

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 content database?

A.
Restore-SPFarm -Directory \\FileServer_ISiame\share\site_name.bak -RestoreMethod Overwrite –
Item “Farm\Microsoft SharePoint Foundation Web Application\AdventureWorks”

B.
Restore-SPSite http://localhost -Path \\FileServer_Name\SharePointBackupFolder SiteBackup.bak
-Force

C.
Backup-SPSite http://localhost -Path \\FileServer_Name\SharePointBackupFolder\SiteBackup.bak

D.
Restore-SPFarm -Directory \\FileServer_Name\ share\site_name.bak -RestoreMethod Overwrite –
ConfigurationOnly

E.
Backup -SPFarm -Directory \\FileServer_Name\SharePointBackupFolder -Item “Farm\Microsoft
SharePoint Foundation Web Application\AdventureWorks” -BackupMethod Full

F.
Backup-SPFarm -Directory \\FileServer_Name\SharePointBackupFolder-BackupMethod Full

G.
Restore-SPFarm -Directory \\FileServer_Name\share\site_name.bak -RestoreMethod Overwrite
Item WSS_AdventureWorks

H.
Backup-SPFarm -Directory \\FileServer_Name\SharePointBackupFolder -BackupMethod Full -Item
WSS_AdventureWorks

Explanation:
http://www.bradleyschacht.com/backup-and-restore-sharepoint-2010-site-collection-withpowershell/
To restore a content database by using Windows PowerShell
1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin.
2. On the Start menu, click All Programs.
3. Click Microsoft SharePoint 2010 Products.
4. Click SharePoint 2010 Management Shell.
5. 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]
http://technet.microsoft.com/en-us/library/ee748604.aspx
Restore-SPFarm
http://technet.microsoft.com/en-us/library/ff607783.aspx
Backup-SPFarm
http://technet.microsoft.com/en-us/library/ff607881.aspx
Backup-SPSite
http://technet.microsoft.com/en-us/library/ff607901.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *