Blogroll

Tuesday, August 14, 2012

Restore a Web application in SharePoint Server 2010 using Windows PowerShell

You can use Windows PowerShell to restore a Web application manually or as part of a script that can be run at scheduled intervals.

To restore a Web application by using Windows PowerShell

1. On the Start menu, click All Programs.
2. Click Microsoft SharePoint 2010 Products.
3. Click SharePoint 2010 Management Shell.
4. At the Windows PowerShell command prompt, type the following command:

Restore-SPFarm -Directory (BackupFolderName) -RestoreMethod Overwrite -Item (WebApplicationName) [-BackupId (GUID)] [-Verbose]

Where:
- BackupFolderName, is the full path to the folder you use for backup files.
- WebApplicationNam, is the name of the Web application that was backed up.
- GUID, is the identifier of the back up to use for the restore operation.

If you do not specify the value of the BackupID parameter, the most recent backup will be used. You cannot restore a Web application by using a configuration-only backup. You can view the backups for the farm by typing the following:
Get-SPBackupHistory -Directory -ShowBackup

No comments:

ShareThis

snow flakes

blogger widgets Blogspot Tutorial

LinkWithin

Related Posts Plugin for WordPress, Blogger...