Thursday, January 23, 2014

Site Collection Restore in Sharepoint 2010 SP1

New feature in  SharePoint 2010 SP1 is  Site Recycle Bin .
 
Older versions of SP 2010 ,
 
Site and Site Collection can be restored from appropriate content databases.
 
But New SP1 onwards :
 
Deleted sites can be restored from the Site Recycle Bin.
 
When you click Delete, you are prompted with below message box, which may be confusing


After clicking on "OK", also we can restore with Powershell Commands.
 
 
Get-SPDeletedSite ( This is will return the list of Deleted sites information)
 
WebApplicationId   : e8a648ee-bd40-4793-975f-6b982ef8192b
DatabaseId         : e5df9392-996d-4830-8abc-58ca0f4655e4
SiteSubscriptionId : 00000000-0000-0000-0000-000000000000
SiteId             : 10992530-a177-4b85-a73f-6e5c7a66741f
Path               : /bbbb/bbbbb
DeletionTime       : 1/21/2014 6:40:27 PM

 
WebApplicationId   : q9a648ee-hd40-4793-975f-6b982ef8192b
DatabaseId         : e5df9392-996d-4830-8abc-58ca0f4655e4
SiteSubscriptionId : 00000000-0000-0000-0000-000000000000
SiteId             : 20992530-a177-4b85-a73f-6e5c7a66743f
Path               : /bbbb/qwass
DeletionTime       : 1/1/2013 8:40:27 PM

 
 
 PowerShell Script for restoring particular Site Collection :

 
 Get-SPDeletedSite | where{$_.SiteId -eq "10992530-a177-4b85-a73f-6e5c7a66741f"}|Restore-SPDeletedSite

Output :


Reference :

http://technet.microsoft.com/en-us/library/hh272537(v=office.14).aspx

No comments:

Post a Comment