Thursday, 17 October 2013

Recovering Deleted Sites and Site Collections

First we'll look at a deleted site. This one is actually nice and simple. You go to the Site Collection Recycle bin, make sure you select "Deleted from end user recycle bin" in the quick launch (see screen shot below), select the deleted site and click restore. It really is that simple!
2011-08-02-RecoveringDeletedSites-01.png
Just a note you do need to be a site collection administrator in order to be able to access this recycle bin.
Secondly we'll look at a deleted site collection. For this process you need to be a farm administrator as the process is performed from the SharePoint 2010 Management Shell on the SharePoint Servers. There are three PowerShell commands to take note of for this operation. They are:
Get-SPDeletedSite – this command gets a list of all deleted Site Collections in your farm.
Restore-SPDeletedSite – this command is used to restore a deleted Site Collection within your farm
Remove-SPDeletedSite – this command is used to actually clear out any deleted Site Collection you no longer want to keep (think "Empty Recycle Bin").
Here are some simple examples of these commands being run.
2011-08-02-RecoveringDeletedSites-02.png
Restore-SPDeletedSite
2011-08-02-RecoveringDeletedSites-03.png
Remove-SPDeletedSite

No comments:

Post a Comment