1.     Back up farm

Verify that you meet the following minimum requirements: See Add-SPShellAdmin.

On the Start menu, click All Programs.

Click Microsoft SharePoint 2010 Products.

Click SharePoint 2010 Management Shell.

At the Windows PowerShell command prompt, type the following command:

Backup-SPFarm -Directory <BackupFolder> -BackupMethod {Full | Differential} [-Verbose]

Where <BackUpFolder> is the path of a folder on the local computer or the network in which you want to store the backups.

2.     Restore farm

Verify that you meet the following minimum requirements: See Add-SPShellAdmin.

On the Start menu, click All Programs.

Click Microsoft SharePoint 2010 Products.

Click SharePoint 2010 Management Shell.

At the Windows PowerShell command prompt, type the following command:

Restore-SPFarm -Directory <BackupFolder> -RestoreMethod Overwrite [-BackupId <GUID>]

Where:
<BackupFolder> is the path of the folder you use for storing backup files.
<GUID> is the identifier of the backup to restore from.

Note:
If you are not logged on as the Farm account, you are prompted for the Farm account’s credentials.

If you do not specify the BackupId, the most recent backup will be used. To view the backups for the farm, type the following command:

Get-SPBackupHistory -Directory <BackupFolder> -ShowBackup [-Verbose]

Where:
<BackupFolder> is the path of the folder you use for storing backup files.

You cannot use a configuration-only backup to restore content databases together with the configuration.

To restart a service application, type the following command:

Start-SPServiceInstance -Identity <ServiceApplicationID>

Where:
<ServiceApplicationID> is the GUID of the service application.

Start-SPServiceInstance For more information about restarting service applications by using Windows PowerShell, see Start-SPServiceInstance.

For more information about restoring the farm by using Windows PowerShell, see Restore-SPFarm.

Hoang Nhut Nguyen

Email: nhutcmos@gmail.com

Skype: hoangnhut.nguyen