Which command should you run to back up the site collection?

You configure a SharePoint Server 2010 Service Pack 1(SP1) Farm. You need to perform backup and
restore of a site collection and its content database by using WindowsPowerShell. Which command
should you run to back up the site collection?

You configure a SharePoint Server 2010 Service Pack 1(SP1) Farm. You need to perform backup and
restore of a site collection and its content database by using WindowsPowerShell. Which command
should you run to back up the site collection?

A.
Restore-SPFarm -Directory \\FileServer_Name\Share\site_name.bak -RestoreMethod Overwrite –
ConfigurationOnly

B.
Restore-SPFarm -Directory \\FileServer_Name\Share\site_name.bak -RestoreMethod Overwrite –
ItemWSS_AdventureWorks

C.
Backup-SPFarm -Directory \\FileServer_Name\SharePointBackupFolder -BackupMethod Full –
ItemWSS_AdventureWorks

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

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

F.
Restore-SPFarm -Directory \\FileServer_Name\Share\site_name.bak -RestoreMethod Overwrite –
Item
“Farm\Microsoft SharePoint Foundation Web Application\AdventureWorks”

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

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

Explanation:

To back up a site collection 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 type the following command:
Backup-SPSite -Identity <Site collection name> -Path <backup file> [-Force] [-NoSiteLock] [-
UseSqlSnapshot] [-Verbose]
http://technet.microsoft.com/en-us/library/ee748617.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 *