SharePoint 2013/2016 Troubleshooting: deleted site collection recovery

Recently, the customer met the issue from end users when discussion with me about other technical solutions: since the company is global and have less than 100+ branch offices, they provided three SharePoint farms to adopt the end users to collaborate with team. Their site collections are managed by every division manager because of too many different divisions and business models.

 

Over time, however the data will be too much to manage, in order not to affect others' usage, IT admin ask end users to delete the site collection relative with the project at time after it goes live, but once end users deleted the site collection by mistake, IT Admin need to take the solution about how to recover the site collection as soon as possible.

 

Maybe as you know, SharePoint has a “Change Log” Timer job for each web-application which is scheduled to run on a Weekly basis. That means the site collection is soft deleted before the timer job is run. It is best practice that IT Admin can recover it by PowerShell instead of running Content DB Restore.

 

(Normally, The Backup policy is to run Incremental backup DBs at the 0:00, if IT Admin restores the site collection using DB restore, the new data coming will be lost and not be used by end users.)

 

To recover the site collections using PowerShell:

1.Open the SharePoint2013/SharePoint 2016Management Shell as the Administrator, input the cmdlet: Get-SPDeletedSite "/"  like this:

 

 2.Get the deleted site ID from the windows:

 

 3.Input Restore cmdlet: Restore-SPDeletedSite -Identity Site ID

 

 4. Enter to get the confirm information, input "Y" and then "Enter"

 

 5.The site collection can be accessed normally after the cmdlet ran.