Steps to backup and restore a site collection using Powershell
A.
Open Sharepoint 2010 Management Shell. Then type the following command, Backup-SPSite –
Identity <Site collection name> -Path <backup file> [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-
Verbose]and to restore
type,Restore-SPSite -Identity<Site collection URL> -Path<Backup file> [-DatabaseServer<Database
server name>] [-DatabaseName<Content database name>] [-HostHeader<Host header>] [-Force] [-
GradualDelete]
[-Verbose]
B.
Open Sharepoint 2010 Management Shell. Then type the following command, Backup-SPFarm –
Directory
<BackupFolder> -BackupMethod {Full | Differential} [-Verbose] and to restore type, Restore-SPFarm
– Directory <BackupFolder> -RestoreMethod Overwrite [-BackupId <GUID>]
C.
Open Sharepoint 2010 Management Shell. Then type the following command, (GetSPBackupHistory – Directory C:\Backup -ShowBackup)[0].SelfId | Restore-SPFarm -Directory
C:\Backup –RestoreMethod overwrite and to restore type,Get-SPBackupHistory -Directory C:\Backup
-RestoreBackup
D.
Open Sharepoint 2010 Management Shell. Then type the following command, BackupSPConfigurationDatabase -Directory <String> [-AssignmentCollection <SPAssignmentCollection>] [-
DatabaseCredentials <PSCredential>] [-DatabaseName <String>] [-DatabaseServer <String>] [-Item
<String>]and to restore type, Restore-SPConfigurationDatabase -Directory <String> [-
AssignmentCollection
<SPAssignmentCollection>] [-DatabaseCredentials <PSCredential>] [-DatabaseName <String>] [-
DatabaseServer <String>] [-Item <String>]
Explanation:
Resource:
http://www.bidn.com/blogs/BradSchacht/ssis/1991/backup-and-restore-sharepoint-2010-
sitecollection-with-powershell
Click Start
Go to All Programs
Go to Microsoft SharePoint 2010 Products
Open SharePoint 2010 Management Shell