An interesting issue, I faced when I am trying to restore a
site collection due to accidently deletion of site collection or site become
corrupted. Here is the command which I run.
Solution:
PS C:\Users\mrajaram> Restore-SPSite http://***********:4126 -path
“D:\***************\Site_TT_4126_Fresh.bak”
But I end up the following error
So finally we solve the mystery. Issue is when we delete a
site collection it's not deleted completely; you still have option to restore
it (that's functionality available in SP 2010 with SP1 or later). It goes to
Site Recycle Bin and you can restore it via following commands:
◦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 will remove the site
collection completely.
Ok. Now we run the Remove-SpDeletedSite command to remove
the Site from Recycle Bin. Please wait adventure is not over yet.
You have to manually run the "Gradual Site Delete"
timer job from Central Admin > Monitoring > Job Definitions and select
the Web Application where you are trying to restore.
Go to Job History and check status
Wait for couple of minutes and now runs the restore command
and it’s worked as per expectation.
Awesome!
Reference:
No comments:
Post a Comment