One of our developers’ created a test site collection on Test Environment and next day the site collection was missing.
Thankfully we had Service Pack 1 rolled out on our various environments which came handy, apart from the regular nightly backup's.
With Service Pack 1, there is a nice feature to restore a deleted site or site collection; here is what we did to restore the site collection
Launch SharePoint Management Shell
Run the command
Get-SPDeletedSite -Identity /sites/ProjectCentre
This displays the following details, this is good to have info but would have appreciated if it had the information about what User / Service Account deleted the site collection
Anyways, found the site collection got deleted at 23:10:54. Checked the Timer Job history for the duration from 23:00 to 23:30, no jobs found which could do this, will have a look at ULS to find what happened.
Run the following command to restore the site collection
Restore-SPDeletedSite -Identity /sites/ProjectCentre
Get-SPDeletedSite -Identity /sites/ProjectCentre | Restore-SPDeletedSite